|
@ -145,7 +145,7 @@ func (m *ProtocolVersion) GetApp() uint64 { |
|
|
|
|
|
|
|
|
type NodeInfo struct { |
|
|
type NodeInfo struct { |
|
|
ProtocolVersion ProtocolVersion `protobuf:"bytes,1,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version"` |
|
|
ProtocolVersion ProtocolVersion `protobuf:"bytes,1,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version"` |
|
|
DefaultNodeID string `protobuf:"bytes,2,opt,name=default_node_id,json=defaultNodeId,proto3" json:"default_node_id,omitempty"` |
|
|
|
|
|
|
|
|
NodeID string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` |
|
|
ListenAddr string `protobuf:"bytes,3,opt,name=listen_addr,json=listenAddr,proto3" json:"listen_addr,omitempty"` |
|
|
ListenAddr string `protobuf:"bytes,3,opt,name=listen_addr,json=listenAddr,proto3" json:"listen_addr,omitempty"` |
|
|
Network string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"` |
|
|
Network string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"` |
|
|
Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` |
|
|
Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` |
|
@ -194,9 +194,9 @@ func (m *NodeInfo) GetProtocolVersion() ProtocolVersion { |
|
|
return ProtocolVersion{} |
|
|
return ProtocolVersion{} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *NodeInfo) GetDefaultNodeID() string { |
|
|
|
|
|
|
|
|
func (m *NodeInfo) GetNodeID() string { |
|
|
if m != nil { |
|
|
if m != nil { |
|
|
return m.DefaultNodeID |
|
|
|
|
|
|
|
|
return m.NodeID |
|
|
} |
|
|
} |
|
|
return "" |
|
|
return "" |
|
|
} |
|
|
} |
|
@ -305,37 +305,37 @@ func init() { |
|
|
func init() { proto.RegisterFile("tendermint/p2p/types.proto", fileDescriptor_c8a29e659aeca578) } |
|
|
func init() { proto.RegisterFile("tendermint/p2p/types.proto", fileDescriptor_c8a29e659aeca578) } |
|
|
|
|
|
|
|
|
var fileDescriptor_c8a29e659aeca578 = []byte{ |
|
|
var fileDescriptor_c8a29e659aeca578 = []byte{ |
|
|
// 476 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x52, 0xc1, 0x6e, 0xda, 0x40, |
|
|
|
|
|
0x10, 0xc5, 0xc6, 0x01, 0x32, 0x94, 0x90, 0xae, 0xa2, 0xca, 0x41, 0xaa, 0x8d, 0x38, 0x71, 0xc2, |
|
|
|
|
|
0x92, 0xab, 0x1e, 0x72, 0x2c, 0xe5, 0xc2, 0x25, 0xb1, 0x56, 0x55, 0x0f, 0xed, 0xc1, 0x02, 0xef, |
|
|
|
|
|
0x06, 0x56, 0x98, 0xdd, 0xd5, 0x7a, 0xd3, 0xd2, 0xbf, 0xe8, 0x67, 0xe5, 0x98, 0x63, 0x2f, 0xb5, |
|
|
|
|
|
0x2a, 0xf3, 0x23, 0x95, 0xd7, 0xa6, 0x05, 0x6e, 0xf3, 0xe6, 0xed, 0xbe, 0x99, 0x79, 0x7a, 0x30, |
|
|
|
|
|
0xd0, 0x94, 0x13, 0xaa, 0xb6, 0x8c, 0xeb, 0x40, 0x86, 0x32, 0xd0, 0x3f, 0x24, 0xcd, 0x26, 0x52, |
|
|
|
|
|
0x09, 0x2d, 0xd0, 0xd5, 0x7f, 0x6e, 0x22, 0x43, 0x39, 0xb8, 0x59, 0x89, 0x95, 0x30, 0x54, 0x50, |
|
|
|
|
|
0x56, 0xd5, 0xab, 0x51, 0x04, 0x70, 0x4f, 0xf5, 0x07, 0x42, 0x14, 0xcd, 0x32, 0xf4, 0x06, 0x6c, |
|
|
|
|
|
0x46, 0x5c, 0x6b, 0x68, 0x8d, 0x2f, 0xa7, 0xad, 0x22, 0xf7, 0xed, 0x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0x00, 0xff, 0xff, 0xa7, 0xfb, 0xff, 0xd7, 0x00, 0x03, 0x00, 0x00, |
|
|
|
|
|
|
|
|
// 468 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x52, 0xcd, 0x8e, 0xda, 0x3c, |
|
|
|
|
|
0x14, 0x25, 0x21, 0x10, 0xe6, 0xf2, 0xcd, 0x8f, 0xac, 0xd1, 0xa7, 0x0c, 0x52, 0x13, 0x44, 0x37, |
|
|
|
|
|
0xac, 0x12, 0x29, 0x55, 0x17, 0x5d, 0x96, 0xce, 0x86, 0xcd, 0x4c, 0x64, 0x55, 0x5d, 0xb4, 0x0b, |
|
|
|
|
|
0x04, 0xb1, 0x0b, 0x16, 0x60, 0x5b, 0x8e, 0xdb, 0xd2, 0xb7, 0xe8, 0x5b, 0x75, 0x96, 0xb3, 0xec, |
|
|
|
|
|
0x2a, 0xaa, 0xc2, 0x8b, 0x54, 0x76, 0x42, 0x0b, 0xec, 0xee, 0xb9, 0xc7, 0xf7, 0xe7, 0x5c, 0x1f, |
|
|
|
|
|
0x18, 0x68, 0xca, 0x09, 0x55, 0x5b, 0xc6, 0x75, 0x22, 0x53, 0x99, 0xe8, 0xef, 0x92, 0x16, 0xb1, |
|
|
|
|
|
0x54, 0x42, 0x0b, 0x74, 0xf5, 0x8f, 0x8b, 0x65, 0x2a, 0x07, 0xb7, 0x4b, 0xb1, 0x14, 0x96, 0x4a, |
|
|
|
|
|
0x4c, 0x54, 0xbf, 0x1a, 0x65, 0x00, 0x0f, 0x54, 0xbf, 0x25, 0x44, 0xd1, 0xa2, 0x40, 0xff, 0x83, |
|
|
|
|
|
0xcb, 0x48, 0xe0, 0x0c, 0x9d, 0xf1, 0xc5, 0xa4, 0x5b, 0x95, 0x91, 0x3b, 0xbd, 0xc7, 0x2e, 0x23, |
|
|
|
|
|
0x36, 0x2f, 0x03, 0xf7, 0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shal() (dAtA []byte, err error) { |
|
|
func (m *NetAddress) Marshal() (dAtA []byte, err error) { |
|
@ -483,10 +483,10 @@ func (m *NodeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
i-- |
|
|
i-- |
|
|
dAtA[i] = 0x1a |
|
|
dAtA[i] = 0x1a |
|
|
} |
|
|
} |
|
|
if len(m.DefaultNodeID) > 0 { |
|
|
|
|
|
i -= len(m.DefaultNodeID) |
|
|
|
|
|
copy(dAtA[i:], m.DefaultNodeID) |
|
|
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(len(m.DefaultNodeID))) |
|
|
|
|
|
|
|
|
if len(m.NodeID) > 0 { |
|
|
|
|
|
i -= len(m.NodeID) |
|
|
|
|
|
copy(dAtA[i:], m.NodeID) |
|
|
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(len(m.NodeID))) |
|
|
i-- |
|
|
i-- |
|
|
dAtA[i] = 0x12 |
|
|
dAtA[i] = 0x12 |
|
|
} |
|
|
} |
|
@ -597,7 +597,7 @@ func (m *NodeInfo) Size() (n int) { |
|
|
_ = l |
|
|
_ = l |
|
|
l = m.ProtocolVersion.Size() |
|
|
l = m.ProtocolVersion.Size() |
|
|
n += 1 + l + sovTypes(uint64(l)) |
|
|
n += 1 + l + sovTypes(uint64(l)) |
|
|
l = len(m.DefaultNodeID) |
|
|
|
|
|
|
|
|
l = len(m.NodeID) |
|
|
if l > 0 { |
|
|
if l > 0 { |
|
|
n += 1 + l + sovTypes(uint64(l)) |
|
|
n += 1 + l + sovTypes(uint64(l)) |
|
|
} |
|
|
} |
|
@ -959,7 +959,7 @@ func (m *NodeInfo) Unmarshal(dAtA []byte) error { |
|
|
iNdEx = postIndex |
|
|
iNdEx = postIndex |
|
|
case 2: |
|
|
case 2: |
|
|
if wireType != 2 { |
|
|
if wireType != 2 { |
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DefaultNodeID", wireType) |
|
|
|
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NodeID", wireType) |
|
|
} |
|
|
} |
|
|
var stringLen uint64 |
|
|
var stringLen uint64 |
|
|
for shift := uint(0); ; shift += 7 { |
|
|
for shift := uint(0); ; shift += 7 { |
|
@ -987,7 +987,7 @@ func (m *NodeInfo) Unmarshal(dAtA []byte) error { |
|
|
if postIndex > l { |
|
|
if postIndex > l { |
|
|
return io.ErrUnexpectedEOF |
|
|
return io.ErrUnexpectedEOF |
|
|
} |
|
|
} |
|
|
m.DefaultNodeID = string(dAtA[iNdEx:postIndex]) |
|
|
|
|
|
|
|
|
m.NodeID = string(dAtA[iNdEx:postIndex]) |
|
|
iNdEx = postIndex |
|
|
iNdEx = postIndex |
|
|
case 3: |
|
|
case 3: |
|
|
if wireType != 2 { |
|
|
if wireType != 2 { |
|
|