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.

35 lines
1.0 KiB

  1. syntax = "proto3";
  2. package tendermint.proto.p2p;
  3. option go_package = "github.com/tendermint/tendermint/proto/p2p";
  4. import "third_party/proto/gogoproto/gogo.proto";
  5. message NetAddress {
  6. string id = 1 [(gogoproto.customname) = "ID"];
  7. string ip = 2 [(gogoproto.customname) = "IP"];
  8. uint32 port = 3;
  9. string str = 4;
  10. }
  11. message ProtocolVersion {
  12. uint64 p2p = 1 [(gogoproto.customname) = "P2P"];
  13. uint64 block = 2;
  14. uint64 app = 3;
  15. }
  16. message DefaultNodeInfo {
  17. ProtocolVersion protocol_version = 1 [(gogoproto.nullable) = false];
  18. string default_node_id = 2 [(gogoproto.customname) = "DefaultNodeID"];
  19. string listen_addr = 3;
  20. string network = 4;
  21. string version = 5;
  22. bytes channels = 6;
  23. string moniker = 7;
  24. DefaultNodeInfoOther other = 8 [(gogoproto.nullable) = false];
  25. }
  26. message DefaultNodeInfoOther {
  27. string tx_index = 1;
  28. string rpc_address = 2 [(gogoproto.customname) = "RPCAdddress"];
  29. }