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