@ -27,66 +27,6 @@ var _ = time.Kitchen
// proto package needs to be updated.
const _ = proto . GoGoProtoPackageIsVersion3 // please upgrade the proto package
type NetAddress struct {
ID string ` protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" `
IP string ` protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty" `
Port uint32 ` protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty" `
}
func ( m * NetAddress ) Reset ( ) { * m = NetAddress { } }
func ( m * NetAddress ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * NetAddress ) ProtoMessage ( ) { }
func ( * NetAddress ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_c8a29e659aeca578 , [ ] int { 0 }
}
func ( m * NetAddress ) XXX_Unmarshal ( b [ ] byte ) error {
return m . Unmarshal ( b )
}
func ( m * NetAddress ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
if deterministic {
return xxx_messageInfo_NetAddress . Marshal ( b , m , deterministic )
} else {
b = b [ : cap ( b ) ]
n , err := m . MarshalToSizedBuffer ( b )
if err != nil {
return nil , err
}
return b [ : n ] , nil
}
}
func ( m * NetAddress ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_NetAddress . Merge ( m , src )
}
func ( m * NetAddress ) XXX_Size ( ) int {
return m . Size ( )
}
func ( m * NetAddress ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_NetAddress . DiscardUnknown ( m )
}
var xxx_messageInfo_NetAddress proto . InternalMessageInfo
func ( m * NetAddress ) GetID ( ) string {
if m != nil {
return m . ID
}
return ""
}
func ( m * NetAddress ) GetIP ( ) string {
if m != nil {
return m . IP
}
return ""
}
func ( m * NetAddress ) GetPort ( ) uint32 {
if m != nil {
return m . Port
}
return 0
}
type ProtocolVersion struct {
P2P uint64 ` protobuf:"varint,1,opt,name=p2p,proto3" json:"p2p,omitempty" `
Block uint64 ` protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty" `
@ -97,7 +37,7 @@ func (m *ProtocolVersion) Reset() { *m = ProtocolVersion{} }
func ( m * ProtocolVersion ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * ProtocolVersion ) ProtoMessage ( ) { }
func ( * ProtocolVersion ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_c8a29e659aeca578 , [ ] int { 1 }
return fileDescriptor_c8a29e659aeca578 , [ ] int { 0 }
}
func ( m * ProtocolVersion ) XXX_Unmarshal ( b [ ] byte ) error {
return m . Unmarshal ( b )
@ -162,7 +102,7 @@ func (m *NodeInfo) Reset() { *m = NodeInfo{} }
func ( m * NodeInfo ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * NodeInfo ) ProtoMessage ( ) { }
func ( * NodeInfo ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_c8a29e659aeca578 , [ ] int { 2 }
return fileDescriptor_c8a29e659aeca578 , [ ] int { 1 }
}
func ( m * NodeInfo ) XXX_Unmarshal ( b [ ] byte ) error {
return m . Unmarshal ( b )
@ -256,7 +196,7 @@ func (m *NodeInfoOther) Reset() { *m = NodeInfoOther{} }
func ( m * NodeInfoOther ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * NodeInfoOther ) ProtoMessage ( ) { }
func ( * NodeInfoOther ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_c8a29e659aeca578 , [ ] int { 3 }
return fileDescriptor_c8a29e659aeca578 , [ ] int { 2 }
}
func ( m * NodeInfoOther ) XXX_Unmarshal ( b [ ] byte ) error {
return m . Unmarshal ( b )
@ -309,7 +249,7 @@ func (m *PeerInfo) Reset() { *m = PeerInfo{} }
func ( m * PeerInfo ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * PeerInfo ) ProtoMessage ( ) { }
func ( * PeerInfo ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_c8a29e659aeca578 , [ ] int { 4 }
return fileDescriptor_c8a29e659aeca578 , [ ] int { 3 }
}
func ( m * PeerInfo ) XXX_Unmarshal ( b [ ] byte ) error {
return m . Unmarshal ( b )
@ -370,7 +310,7 @@ func (m *PeerAddressInfo) Reset() { *m = PeerAddressInfo{} }
func ( m * PeerAddressInfo ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * PeerAddressInfo ) ProtoMessage ( ) { }
func ( * PeerAddressInfo ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_c8a29e659aeca578 , [ ] int { 5 }
return fileDescriptor_c8a29e659aeca578 , [ ] int { 4 }
}
func ( m * PeerAddressInfo ) XXX_Unmarshal ( b [ ] byte ) error {
return m . Unmarshal ( b )
@ -428,7 +368,6 @@ func (m *PeerAddressInfo) GetDialFailures() uint32 {
}
func init ( ) {
proto . RegisterType ( ( * NetAddress ) ( nil ) , "tendermint.p2p.NetAddress" )
proto . RegisterType ( ( * ProtocolVersion ) ( nil ) , "tendermint.p2p.ProtocolVersion" )
proto . RegisterType ( ( * NodeInfo ) ( nil ) , "tendermint.p2p.NodeInfo" )
proto . RegisterType ( ( * NodeInfoOther ) ( nil ) , "tendermint.p2p.NodeInfoOther" )
@ -439,90 +378,46 @@ func init() {
func init ( ) { proto . RegisterFile ( "tendermint/p2p/types.proto" , fileDescriptor_c8a29e659aeca578 ) }
var fileDescriptor_c8a29e659aeca578 = [ ] byte {
// 641 bytes of a gzipped FileDescriptorProto
0x1f , 0x8b , 0x08 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x02 , 0xff , 0x8c , 0x54 , 0xcd , 0x6e , 0x1a , 0x3b ,
0x14 , 0x66 , 0x80 , 0x00 , 0x39 , 0x84 , 0x90 , 0x6b , 0x45 , 0x57 , 0x13 , 0xa4 , 0xcb , 0x20 , 0xb2 , 0xc9 ,
0x6a , 0x90 , 0xb8 , 0xea , 0xa2 , 0xcb , 0x92 , 0xa8 , 0x15 , 0x52 , 0x95 , 0x8c , 0xdc , 0xa8 , 0x8b , 0x76 ,
0x81 , 0x86 , 0xb1 , 0x21 , 0x56 , 0x06 , 0xdb , 0xf2 , 0x98 , 0x36 , 0x7d , 0x8b , 0xbc , 0x49 , 0x1f , 0xa3 ,
0x59 , 0x66 , 0xd9 , 0x15 , 0xad , 0x26 , 0xdb , 0x3e , 0x44 , 0x65 , 0xcf , 0x4c , 0x02 , 0xa8 , 0x95 , 0xb2 ,
0xf3 , 0x77 , 0x8e , 0xbf , 0xef , 0xfc , 0xea , 0x40 , 0x47 , 0x53 , 0x4e , 0xa8 , 0x5a , 0x30 , 0xae , 0x07 ,
0x72 , 0x28 , 0x07 , 0xfa , 0x8b , 0xa4 , 0x89 , 0x2f , 0x95 , 0xd0 , 0x02 , 0xed , 0x3f , 0xf9 , 0x7c , 0x39 ,
0x94 , 0x9d , 0xc3 , 0xb9 , 0x98 , 0x0b , 0xeb , 0x1a , 0x98 , 0x57 , 0xf6 , 0xab , 0xe3 , 0xcd , 0x85 , 0x98 ,
0xc7 , 0x74 , 0x60 , 0xd1 , 0x74 , 0x39 , 0x1b , 0x68 , 0xb6 , 0xa0 , 0x89 , 0x0e , 0x17 , 0x32 , 0xfb , 0xd0 ,
0x0f , 0x00 , 0xce , 0xa9 , 0x7e , 0x45 , 0x88 , 0xa2 , 0x49 , 0x82 , 0xfe , 0x85 , 0x32 , 0x23 , 0xae , 0xd3 ,
0x73 , 0x4e , 0x76 , 0x47 , 0xb5 , 0x74 , 0xe5 , 0x95 , 0xc7 , 0x67 , 0xb8 , 0xcc , 0x88 , 0xb5 , 0x4b , 0xb7 ,
0xbc , 0x66 , 0x0f , 0x70 , 0x99 , 0x49 , 0x84 , 0xa0 , 0x2a , 0x85 , 0xd2 , 0x6e , 0xa5 , 0xe7 , 0x9c , 0xb4 ,
0xb0 , 0x7d , 0xf7 , 0x2f , 0xa1 , 0x1d , 0x18 , 0xe9 , 0x48 , 0xc4 , 0xef , 0xa9 , 0x4a , 0x98 , 0xe0 , 0xe8 ,
0x08 , 0x2a , 0x72 , 0x28 , 0xad , 0x6e , 0x75 , 0x54 , 0x4f , 0x57 , 0x5e , 0x25 , 0x18 , 0x06 , 0xd8 , 0xd8 ,
0xd0 , 0x21 , 0xec , 0x4c , 0x63 , 0x11 , 0x5d , 0x5b , 0xf1 , 0x2a , 0xce , 0x00 , 0x3a , 0x80 , 0x4a , 0x28 ,
0xa5 , 0x95 , 0xad , 0x62 , 0xf3 , 0xec , 0x7f , 0x2b , 0x43 , 0xe3 , 0x5c , 0x10 , 0x3a , 0xe6 , 0x33 , 0x81 ,
0x02 , 0x38 , 0x90 , 0x79 , 0x88 , 0xc9 , 0xa7 , 0x2c , 0x86 , 0x15 , 0x6f , 0x0e , 0x3d , 0x7f , 0xb3 , 0x2d ,
0xfe , 0x56 , 0x2a , 0xa3 , 0xea , 0xdd , 0xca , 0x2b , 0xe1 , 0xb6 , 0xdc , 0xca , 0xf0 , 0x18 , 0xea , 0x5c ,
0x10 , 0x3a , 0x61 , 0x24 , 0xaf , 0x12 , 0xd2 , 0x95 , 0x57 , 0xb3 , 0x01 , 0xcf , 0x70 , 0xcd , 0xb8 , 0xc6 ,
0x04 , 0x79 , 0xd0 , 0x8c , 0x59 , 0xa2 , 0x29 , 0x9f , 0x84 , 0x84 , 0x28 , 0x9b , 0xdd , 0x2e , 0x86 , 0xcc ,
0x64 , 0x3a , 0x88 , 0x5c , 0xa8 , 0x73 , 0xaa , 0x3f , 0x0b , 0x75 , 0xed , 0x56 , 0xad , 0xb3 , 0x80 , 0xc6 ,
0x53 , 0x24 , 0xba , 0x93 , 0x79 , 0x72 , 0x88 , 0x3a , 0xd0 , 0x88 , 0xae , 0x42 , 0xce , 0x69 , 0x9c , 0xb8 ,
0xb5 , 0x9e , 0x73 , 0xb2 , 0x87 , 0x1f , 0xb1 , 0x61 , 0x2d , 0x04 , 0x67 , 0xd7 , 0x54 , 0xb9 , 0xf5 , 0x8c ,
0x95 , 0x43 , 0xf4 , 0x12 , 0x76 , 0x84 , 0xbe , 0xa2 , 0xca , 0x6d , 0xd8 , 0xb2 , 0xff , 0xdb , 0x2e , 0xbb ,
0x68 , 0xd5 , 0x85 , 0xf9 , 0x94 , 0x17 , 0x9d , 0x31 , 0xfa , 0x1f , 0xa1 , 0xb5 , 0xe1 , 0x45 , 0x47 , 0xd0 ,
0xd0 , 0x37 , 0x13 , 0xc6 , 0x09 , 0xbd , 0xc9 , 0x46 , 0x8f , 0xeb , 0xfa , 0x66 , 0x6c , 0x20 , 0x1a , 0x40 ,
0x53 , 0xc9 , 0xc8 , 0x96 , 0x4b , 0x93 , 0x24 , 0x6f , 0xcd , 0x7e , 0xba , 0xf2 , 0x00 , 0x07 , 0xa7 , 0xf9 ,
0xd2 , 0x60 , 0x50 , 0x32 , 0xca , 0xdf , 0xfd , 0xaf , 0x0e , 0x34 , 0x02 , 0x4a , 0x95 , 0x1d , 0xd3 , 0xdf ,
0xb6 , 0x69 , 0x04 , 0x7b , 0xb9 , 0xe2 , 0x84 , 0xf1 , 0x99 , 0x70 , 0xcb , 0xbd , 0xca , 0x1f , 0x47 , 0x47 ,
0xa9 , 0xca , 0x75 , 0x8d , 0x1c , 0x6e , 0x86 , 0x4f , 0x00 , 0xbd , 0x81 , 0xfd , 0x38 , 0x4c , 0xf4 , 0x24 ,
0x12 , 0x9c , 0xd3 , 0x48 , 0x53 , 0x62 , 0xc7 , 0xd1 , 0x1c , 0x76 , 0xfc , 0x6c , 0xe3 , 0xfd , 0x62 , 0xe3 ,
0xfd , 0xcb , 0x62 , 0xe3 , 0x47 , 0xd5 , 0xdb , 0x1f , 0x9e , 0x83 , 0x5b , 0x86 , 0x77 , 0x5a , 0xd0 , 0xfa ,
0xbf , 0x1c , 0x68 , 0x6f , 0x45 , 0x32 , 0x7d , 0x2f , 0x4a , 0xce , 0x1b , 0x92 , 0x43 , 0xf4 , 0x16 , 0xfe ,
0xb1 , 0x61 , 0x09 , 0x0b , 0xe3 , 0x49 , 0xb2 , 0x8c , 0xa2 , 0xa2 , 0x2d , 0xcf , 0x89 , 0xdc , 0x36 , 0xd4 ,
0x33 , 0x16 , 0xc6 , 0xef , 0x32 , 0xe2 , 0xa6 , 0xda , 0x2c , 0x64 , 0xf1 , 0x52 , 0xd1 , 0x67 , 0xd7 , 0xf1 ,
0xa8 , 0xf6 , 0x3a , 0x23 , 0xa2 , 0x63 , 0x68 , 0xad , 0x0b , 0x25 , 0x76 , 0x07 , 0x5b , 0x78 , 0x8f , 0x3c ,
0xfd , 0x49 , 0x46 , 0x17 , 0x77 , 0x69 , 0xd7 , 0xb9 , 0x4f , 0xbb , 0xce , 0xcf , 0xb4 , 0xeb , 0xdc , 0x3e ,
0x74 , 0x4b , 0xf7 , 0x0f , 0xdd , 0xd2 , 0xf7 , 0x87 , 0x6e , 0xe9 , 0xc3 , 0x8b , 0x39 , 0xd3 , 0x57 , 0xcb ,
0xa9 , 0x1f , 0x89 , 0xc5 , 0x60 , 0xed , 0xee , 0xac , 0x9f , 0x20 , 0x7b , 0x5d , 0x36 , 0x6f , 0xd2 , 0xb4 ,
0x66 , 0xad , 0xff , 0xff , 0x0e , 0x00 , 0x00 , 0xff , 0xff , 0x88 , 0x9e , 0xfc , 0x51 , 0xac , 0x04 , 0x00 ,
0x00 ,
}
func ( m * NetAddress ) Marshal ( ) ( dAtA [ ] byte , err error ) {
size := m . Size ( )
dAtA = make ( [ ] byte , size )
n , err := m . MarshalToSizedBuffer ( dAtA [ : size ] )
if err != nil {
return nil , err
}
return dAtA [ : n ] , nil
}
func ( m * NetAddress ) MarshalTo ( dAtA [ ] byte ) ( int , error ) {
size := m . Size ( )
return m . MarshalToSizedBuffer ( dAtA [ : size ] )
}
func ( m * NetAddress ) MarshalToSizedBuffer ( dAtA [ ] byte ) ( int , error ) {
i := len ( dAtA )
_ = i
var l int
_ = l
if m . Port != 0 {
i = encodeVarintTypes ( dAtA , i , uint64 ( m . Port ) )
i --
dAtA [ i ] = 0x18
}
if len ( m . IP ) > 0 {
i -= len ( m . IP )
copy ( dAtA [ i : ] , m . IP )
i = encodeVarintTypes ( dAtA , i , uint64 ( len ( m . IP ) ) )
i --
dAtA [ i ] = 0x12
}
if len ( m . ID ) > 0 {
i -= len ( m . ID )
copy ( dAtA [ i : ] , m . ID )
i = encodeVarintTypes ( dAtA , i , uint64 ( len ( m . ID ) ) )
i --
dAtA [ i ] = 0xa
}
return len ( dAtA ) - i , nil
// 610 bytes of a gzipped FileDescriptorProto
0x1f , 0x8b , 0x08 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x02 , 0xff , 0x8c , 0x54 , 0xcd , 0x4e , 0x1b , 0x3d ,
0x14 , 0xcd , 0x24 , 0x21 , 0x09 , 0x37 , 0x84 , 0xf0 , 0x59 , 0xe8 , 0xd3 , 0x10 , 0xa9 , 0x19 , 0x14 , 0x36 ,
0xac , 0x26 , 0x52 , 0xaa , 0x2e , 0xba , 0x64 , 0x40 , 0xad , 0x22 , 0x55 , 0x25 , 0x9a , 0xa2 , 0x2e , 0xda ,
0xc5 , 0x68 , 0x32 , 0x76 , 0x82 , 0xc5 , 0xc4 , 0xb6 , 0x3c , 0x4e , 0x4b , 0xdf , 0x82 , 0x37 , 0xe9 , 0x63 ,
0x94 , 0x25 , 0xcb , 0xae , 0xd2 , 0x6a , 0xd8 , 0xf6 , 0x21 , 0x2a , 0xdb , 0x33 , 0x40 , 0xa2 , 0x2e , 0xd8 ,
0xf9 , 0xdc , 0xe3 , 0x73 , 0xee , 0x8f , 0xad , 0x0b , 0x3d , 0x45 , 0x18 , 0x26 , 0x72 , 0x41 , 0x99 , 0x1a ,
0x8a , 0x91 , 0x18 , 0xaa , 0x6f , 0x82 , 0x64 , 0xbe , 0x90 , 0x5c , 0x71 , 0xb4 , 0xfb , 0xc8 , 0xf9 , 0x62 ,
0x24 , 0x7a , 0xfb , 0x73 , 0x3e , 0xe7 , 0x86 , 0x1a , 0xea , 0x93 , 0xbd , 0xd5 , 0xf3 , 0xe6 , 0x9c , 0xcf ,
0x53 , 0x32 , 0x34 , 0x68 , 0xba , 0x9c , 0x0d , 0x15 , 0x5d , 0x90 , 0x4c , 0xc5 , 0x0b , 0x61 , 0x2f , 0x0c ,
0x2e , 0xa0 , 0x3b , 0xd1 , 0x87 , 0x84 , 0xa7 , 0x1f , 0x89 , 0xcc , 0x28 , 0x67 , 0xe8 , 0x00 , 0x6a , 0x62 ,
0x24 , 0x5c , 0xe7 , 0xd0 , 0x39 , 0xae , 0x07 , 0xcd , 0x7c , 0xe5 , 0xd5 , 0x26 , 0xa3 , 0x49 , 0xa8 , 0x63 ,
0x68 , 0x1f , 0xb6 , 0xa6 , 0x29 , 0x4f , 0xae , 0xdc , 0xaa , 0x26 , 0x43 , 0x0b , 0xd0 , 0x1e , 0xd4 , 0x62 ,
0x21 , 0xdc , 0x9a , 0x89 , 0xe9 , 0xe3 , 0xe0 , 0x47 , 0x15 , 0x5a , 0xef , 0x39 , 0x26 , 0x63 , 0x36 , 0xe3 ,
0x68 , 0x02 , 0x7b , 0xa2 , 0x48 , 0x11 , 0x7d , 0xb1 , 0x39 , 0x8c , 0x79 , 0x7b , 0xe4 , 0xf9 , 0xeb , 0x4d ,
0xf8 , 0x1b , 0xa5 , 0x04 , 0xf5 , 0xdb , 0x95 , 0x57 , 0x09 , 0xbb , 0x62 , 0xa3 , 0xc2 , 0x23 , 0x68 , 0x32 ,
0x8e , 0x49 , 0x44 , 0xb1 , 0x29 , 0x64 , 0x3b , 0x80 , 0x7c , 0xe5 , 0x35 , 0x4c , 0xc2 , 0xb3 , 0xb0 , 0xa1 ,
0xa9 , 0x31 , 0x46 , 0x1e , 0xb4 , 0x53 , 0x9a , 0x29 , 0xc2 , 0xa2 , 0x18 , 0x63 , 0x69 , 0xaa , 0xdb , 0x0e ,
0xc1 , 0x86 , 0x4e , 0x30 , 0x96 , 0xc8 , 0x85 , 0x26 , 0x23 , 0xea , 0x2b , 0x97 , 0x57 , 0x6e , 0xdd , 0x90 ,
0x25 , 0xd4 , 0x4c , 0x59 , 0xe8 , 0x96 , 0x65 , 0x0a , 0x88 , 0x7a , 0xd0 , 0x4a , 0x2e , 0x63 , 0xc6 , 0x48 ,
0x9a , 0xb9 , 0x8d , 0x43 , 0xe7 , 0x78 , 0x27 , 0x7c , 0xc0 , 0x5a , 0xb5 , 0xe0 , 0x8c , 0x5e , 0x11 , 0xe9 ,
0x36 , 0xad , 0xaa , 0x80 , 0xe8 , 0x35 , 0x6c , 0x71 , 0x75 , 0x49 , 0xa4 , 0xdb , 0x32 , 0x6d , 0xbf , 0xd8 ,
0x6c , 0xbb , 0x1c , 0xd5 , 0xb9 , 0xbe , 0x54 , 0x34 , 0x6d , 0x15 , 0x83 , 0xcf , 0xd0 , 0x59 , 0x63 , 0xd1 ,
0x01 , 0xb4 , 0xd4 , 0x75 , 0x44 , 0x19 , 0x26 , 0xd7 , 0x66 , 0x8a , 0xdb , 0x61 , 0x53 , 0x5d , 0x8f , 0x35 ,
0x44 , 0x43 , 0x68 , 0x4b , 0x91 , 0x98 , 0x76 , 0x49 , 0x96 , 0x15 , 0xa3 , 0xd9 , 0xcd , 0x57 , 0x1e , 0x84 ,
0x93 , 0xd3 , 0x13 , 0x1b , 0x0d , 0x41 , 0x8a , 0xa4 , 0x38 , 0x0f , 0xbe , 0x3b , 0xd0 , 0x9a , 0x10 , 0x22 ,
0xcd , 0x33 , 0xfd , 0x0f , 0x55 , 0x8a , 0xad , 0x65 , 0xd0 , 0xc8 , 0x57 , 0x5e , 0x75 , 0x7c , 0x16 , 0x56 ,
0x29 , 0x46 , 0x01 , 0xec , 0x14 , 0x8e , 0x11 , 0x65 , 0x33 , 0xee , 0x56 , 0x0f , 0x6b , 0xff , 0x7c , 0x3a ,
0x42 , 0x64 , 0xe1 , 0xab , 0xed , 0xc2 , 0x76 , 0xfc , 0x08 , 0xd0 , 0x5b , 0xd8 , 0x4d , 0xe3 , 0x4c , 0x45 ,
0x09 , 0x67 , 0x8c , 0x24 , 0x8a , 0x60 , 0xf3 , 0x1c , 0xed , 0x51 , 0xcf , 0xb7 , 0xff , 0xd3 , 0x2f , 0xff ,
0xa7 , 0x7f , 0x51 , 0xfe , 0xcf , 0xa0 , 0x7e , 0xf3 , 0xcb , 0x73 , 0xc2 , 0x8e , 0xd6 , 0x9d , 0x96 , 0xb2 ,
0xc1 , 0x1f , 0x07 , 0xba , 0x1b , 0x99 , 0xf4 , 0xdc , 0xcb , 0x96 , 0x8b , 0x81 , 0x14 , 0x10 , 0xbd , 0x83 ,
0xff , 0x4c , 0x5a , 0x4c , 0xe3 , 0x34 , 0xca , 0x96 , 0x49 , 0x52 , 0x8e , 0xe5 , 0x39 , 0x99 , 0xbb , 0x5a ,
0x7a , 0x46 , 0xe3 , 0xf4 , 0x83 , 0x15 , 0xae , 0xbb , 0xcd , 0x62 , 0x9a , 0x2e , 0x25 , 0x79 , 0x76 , 0x1f ,
0x0f , 0x6e , 0x6f , 0xac , 0x10 , 0x1d , 0x41 , 0xe7 , 0xa9 , 0x51 , 0x66 , 0xfe , 0x60 , 0x27 , 0xdc , 0xc1 ,
0x8f , 0x77 , 0xb2 , 0xe0 , 0xfc , 0x36 , 0xef , 0x3b , 0x77 , 0x79 , 0xdf , 0xf9 , 0x9d , 0xf7 , 0x9d , 0x9b ,
0xfb , 0x7e , 0xe5 , 0xee , 0xbe , 0x5f , 0xf9 , 0x79 , 0xdf , 0xaf , 0x7c , 0x7a , 0x35 , 0xa7 , 0xea , 0x72 ,
0x39 , 0xf5 , 0x13 , 0xbe , 0x18 , 0x3e , 0xd9 , 0x12 , 0x4f , 0x17 , 0x86 , 0xd9 , 0x05 , 0xeb , 0x1b , 0x64 ,
0xda , 0x30 , 0xd1 , 0x97 , 0x7f , 0x03 , 0x00 , 0x00 , 0xff , 0xff , 0x0b , 0xe9 , 0x56 , 0xd3 , 0x5a , 0x04 ,
0x00 , 0x00 ,
}
func ( m * ProtocolVersion ) Marshal ( ) ( dAtA [ ] byte , err error ) {
@ -805,26 +700,6 @@ func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
dAtA [ offset ] = uint8 ( v )
return base
}
func ( m * NetAddress ) Size ( ) ( n int ) {
if m == nil {
return 0
}
var l int
_ = l
l = len ( m . ID )
if l > 0 {
n += 1 + l + sovTypes ( uint64 ( l ) )
}
l = len ( m . IP )
if l > 0 {
n += 1 + l + sovTypes ( uint64 ( l ) )
}
if m . Port != 0 {
n += 1 + sovTypes ( uint64 ( m . Port ) )
}
return n
}
func ( m * ProtocolVersion ) Size ( ) ( n int ) {
if m == nil {
return 0
@ -950,139 +825,6 @@ func sovTypes(x uint64) (n int) {
func sozTypes ( x uint64 ) ( n int ) {
return sovTypes ( uint64 ( ( x << 1 ) ^ uint64 ( ( int64 ( x ) >> 63 ) ) ) )
}
func ( m * NetAddress ) Unmarshal ( dAtA [ ] byte ) error {
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return fmt . Errorf ( "proto: NetAddress: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return fmt . Errorf ( "proto: NetAddress: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field ID" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . ID = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 2 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field IP" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . IP = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 3 :
if wireType != 0 {
return fmt . Errorf ( "proto: wrong wireType = %d for field Port" , wireType )
}
m . Port = 0
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
m . Port |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
default :
iNdEx = preIndex
skippy , err := skipTypes ( dAtA [ iNdEx : ] )
if err != nil {
return err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return ErrInvalidLengthTypes
}
if ( iNdEx + skippy ) > l {
return io . ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io . ErrUnexpectedEOF
}
return nil
}
func ( m * ProtocolVersion ) Unmarshal ( dAtA [ ] byte ) error {
l := len ( dAtA )
iNdEx := 0