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.

42 lines
1.4 KiB

  1. syntax = "proto3";
  2. package tendermint.p2p;
  3. option go_package = "github.com/tendermint/tendermint/proto/tendermint/p2p";
  4. import "gogoproto/gogo.proto";
  5. import "google/protobuf/timestamp.proto";
  6. message ProtocolVersion {
  7. uint64 p2p = 1 [(gogoproto.customname) = "P2P"];
  8. uint64 block = 2;
  9. uint64 app = 3;
  10. }
  11. message NodeInfo {
  12. ProtocolVersion protocol_version = 1 [(gogoproto.nullable) = false];
  13. string node_id = 2 [(gogoproto.customname) = "NodeID"];
  14. string listen_addr = 3;
  15. string network = 4;
  16. string version = 5;
  17. bytes channels = 6;
  18. string moniker = 7;
  19. NodeInfoOther other = 8 [(gogoproto.nullable) = false];
  20. }
  21. message NodeInfoOther {
  22. string tx_index = 1;
  23. string rpc_address = 2 [(gogoproto.customname) = "RPCAddress"];
  24. }
  25. message PeerInfo {
  26. string id = 1 [(gogoproto.customname) = "ID"];
  27. repeated PeerAddressInfo address_info = 2;
  28. google.protobuf.Timestamp last_connected = 3 [(gogoproto.stdtime) = true];
  29. }
  30. message PeerAddressInfo {
  31. string address = 1;
  32. google.protobuf.Timestamp last_dial_success = 2 [(gogoproto.stdtime) = true];
  33. google.protobuf.Timestamp last_dial_failure = 3 [(gogoproto.stdtime) = true];
  34. uint32 dial_failures = 4;
  35. }