|
|
@ -98,6 +98,8 @@ type DownloaderRequest struct { |
|
|
|
Hashes [][]byte `protobuf:"bytes,2,rep,name=hashes,proto3" json:"hashes,omitempty"` |
|
|
|
Hashes [][]byte `protobuf:"bytes,2,rep,name=hashes,proto3" json:"hashes,omitempty"` |
|
|
|
PeerHash []byte `protobuf:"bytes,3,opt,name=peerHash,proto3" json:"peerHash,omitempty"` |
|
|
|
PeerHash []byte `protobuf:"bytes,3,opt,name=peerHash,proto3" json:"peerHash,omitempty"` |
|
|
|
BlockHash []byte `protobuf:"bytes,4,opt,name=blockHash,proto3" json:"blockHash,omitempty"` |
|
|
|
BlockHash []byte `protobuf:"bytes,4,opt,name=blockHash,proto3" json:"blockHash,omitempty"` |
|
|
|
|
|
|
|
Ip string `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"` |
|
|
|
|
|
|
|
Port string `protobuf:"bytes,6,opt,name=port,proto3" json:"port,omitempty"` |
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
XXX_sizecache int32 `json:"-"` |
|
|
|
XXX_sizecache int32 `json:"-"` |
|
|
@ -156,6 +158,20 @@ func (m *DownloaderRequest) GetBlockHash() []byte { |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (m *DownloaderRequest) GetIp() string { |
|
|
|
|
|
|
|
if m != nil { |
|
|
|
|
|
|
|
return m.Ip |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return "" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (m *DownloaderRequest) GetPort() string { |
|
|
|
|
|
|
|
if m != nil { |
|
|
|
|
|
|
|
return m.Port |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return "" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// DownloaderResponse is the generic response of DownloaderRequest.
|
|
|
|
// DownloaderResponse is the generic response of DownloaderRequest.
|
|
|
|
type DownloaderResponse struct { |
|
|
|
type DownloaderResponse struct { |
|
|
|
// payload of Block.
|
|
|
|
// payload of Block.
|
|
|
@ -224,30 +240,32 @@ func init() { |
|
|
|
func init() { proto.RegisterFile("downloader.proto", fileDescriptor_6a99ec95c7ab1ff1) } |
|
|
|
func init() { proto.RegisterFile("downloader.proto", fileDescriptor_6a99ec95c7ab1ff1) } |
|
|
|
|
|
|
|
|
|
|
|
var fileDescriptor_6a99ec95c7ab1ff1 = []byte{ |
|
|
|
var fileDescriptor_6a99ec95c7ab1ff1 = []byte{ |
|
|
|
// 364 bytes of a gzipped FileDescriptorProto
|
|
|
|
// 388 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xcf, 0xae, 0x9a, 0x40, |
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xdf, 0x6f, 0x94, 0x40, |
|
|
|
0x14, 0xc6, 0x05, 0x91, 0xeb, 0x3d, 0x98, 0x3a, 0x3d, 0x6d, 0x1a, 0x62, 0xda, 0x86, 0xb0, 0xb2, |
|
|
|
0x10, 0xc7, 0x6f, 0x39, 0xa0, 0x77, 0xc3, 0xa5, 0x5d, 0x47, 0x63, 0x48, 0xa3, 0x86, 0xf0, 0x84, |
|
|
|
0x1b, 0x16, 0xba, 0xea, 0xa2, 0x0b, 0x8b, 0x53, 0x21, 0x5a, 0x4c, 0x07, 0xac, 0xe9, 0x12, 0xeb, |
|
|
|
0x2f, 0x3c, 0xb4, 0x4f, 0x3e, 0xf8, 0x50, 0xe9, 0x7a, 0x90, 0x56, 0x2e, 0x2e, 0x9c, 0x8d, 0x8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9, |
|
|
|
0xa5, 0x61, 0x48, 0x5a, 0xd8, 0x05, 0xed, 0xd3, 0xc4, 0x5f, 0x10, 0xa5, 0x02, 0xe6, 0x07, 0xe1, |
|
|
|
0x03, 0x67, 0xc3, 0x47, 0x54, 0xf7, 0x65, 0xab, 0x79, 0x9a, 0x7c, 0x6c, 0xf9, 0xef, 0xe0, 0xc5, |
|
|
|
0xb7, 0xc0, 0x25, 0xea, 0xe8, 0x2b, 0x40, 0x7d, 0x1a, 0xf4, 0xa0, 0xf3, 0xe5, 0xc4, 0xf3, 0x12, |
|
|
|
0xbf, 0xea, 0xfb, 0x05, 0xb2, 0x75, 0x14, 0xb1, 0x2c, 0xa3, 0x13, 0x9c, 0x81, 0xf9, 0xf1, 0x22, |
|
|
|
0xdf, 0xdc, 0xbd, 0xe5, 0xc1, 0xdb, 0xfb, 0x69, 0xec, 0xd6, 0x46, 0x97, 0xaf, 0x6b, 0xfc, 0x37, |
|
|
|
0xb9, 0xa6, 0xa4, 0x07, 0x96, 0xa4, 0xd9, 0xd7, 0x34, 0xa2, 0xc6, 0xd9, 0x17, 0x80, 0x61, 0x1a, |
|
|
|
0x00, 0x00, 0xff, 0xff, 0x60, 0xac, 0xf6, 0x1e, 0x71, 0x02, 0x00, 0x00, |
|
|
|
0x8c, 0xc1, 0xfa, 0xfc, 0x24, 0x9a, 0x0e, 0x5f, 0x1f, 0xbc, 0x84, 0xd3, 0x37, 0x87, 0xb7, 0xf1, |
|
|
|
|
|
|
|
0x27, 0xb7, 0xb6, 0xbe, 0xc0, 0xf3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x45, 0x42, 0x00, 0x51, |
|
|
|
|
|
|
|
0x95, 0x02, 0x00, 0x00, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|