You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
811 B

  1. syntax = "proto3";
  2. package tendermint.p2p;
  3. option go_package = "github.com/tendermint/tendermint/proto/tendermint/p2p";
  4. import "gogoproto/gogo.proto";
  5. message PexAddress {
  6. string id = 1 [(gogoproto.customname) = "ID"];
  7. string ip = 2 [(gogoproto.customname) = "IP"];
  8. uint32 port = 3;
  9. }
  10. message PexRequest {}
  11. message PexResponse {
  12. repeated PexAddress addresses = 1 [(gogoproto.nullable) = false];
  13. }
  14. message PexAddressV2 {
  15. string url = 1 [(gogoproto.customname) = "URL"];
  16. }
  17. message PexRequestV2 {}
  18. message PexResponseV2 {
  19. repeated PexAddressV2 addresses = 1 [(gogoproto.nullable) = false];
  20. }
  21. message PexMessage {
  22. oneof sum {
  23. PexRequest pex_request = 1;
  24. PexResponse pex_response = 2;
  25. PexRequestV2 pex_request_v2 = 3;
  26. PexResponseV2 pex_response_v2 = 4;
  27. }
  28. }