@ -40,7 +40,6 @@ const (
DownloaderRequest_REGISTERTIMEOUT DownloaderRequest_RequestType = 5
DownloaderRequest_UNKNOWN DownloaderRequest_RequestType = 6
DownloaderRequest_BLOCKHEADER DownloaderRequest_RequestType = 7
DownloaderRequest_BLOCKWITHSIG DownloaderRequest_RequestType = 8
)
// Enum value maps for DownloaderRequest_RequestType.
@ -54,7 +53,6 @@ var (
5 : "REGISTERTIMEOUT" ,
6 : "UNKNOWN" ,
7 : "BLOCKHEADER" ,
8 : "BLOCKWITHSIG" ,
}
DownloaderRequest_RequestType_value = map [ string ] int32 {
"BLOCKHASH" : 0 ,
@ -65,7 +63,6 @@ var (
"REGISTERTIMEOUT" : 5 ,
"UNKNOWN" : 6 ,
"BLOCKHEADER" : 7 ,
"BLOCKWITHSIG" : 8 ,
}
)
@ -161,6 +158,7 @@ type DownloaderRequest struct {
Port string ` protobuf:"bytes,6,opt,name=port,proto3" json:"port,omitempty" `
Size uint32 ` protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty" `
RegisterWithSig bool ` protobuf:"varint,8,opt,name=registerWithSig,proto3" json:"registerWithSig,omitempty" ` // Expect to have NEWBLOCK response of block along with current signature
GetBlocksWithSig bool ` protobuf:"varint,9,opt,name=getBlocksWithSig,proto3" json:"getBlocksWithSig,omitempty" ` // Have block along with signature for BLOCK request.
}
func ( x * DownloaderRequest ) Reset ( ) {
@ -251,6 +249,13 @@ func (x *DownloaderRequest) GetRegisterWithSig() bool {
return false
}
func ( x * DownloaderRequest ) GetGetBlocksWithSig ( ) bool {
if x != nil {
return x . GetBlocksWithSig
}
return false
}
// DownloaderResponse is the generic response of DownloaderRequest.
type DownloaderResponse struct {
state protoimpl . MessageState
@ -321,7 +326,7 @@ var File_downloader_proto protoreflect.FileDescriptor
var file_downloader_proto_rawDesc = [ ] byte {
0x0a , 0x10 , 0x64 , 0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x2e , 0x70 , 0x72 , 0x6f ,
0x74 , 0x6f , 0x12 , 0x0a , 0x64 , 0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x22 , 0xa2 ,
0x74 , 0x6f , 0x12 , 0x0a , 0x64 , 0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x22 , 0xbc ,
0x03 , 0x0a , 0x11 , 0x44 , 0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x52 , 0x65 , 0x71 ,
0x75 , 0x65 , 0x73 , 0x74 , 0x12 , 0x3d , 0x0a , 0x04 , 0x74 , 0x79 , 0x70 , 0x65 , 0x18 , 0x01 , 0x20 , 0x01 ,
0x28 , 0x0e , 0x32 , 0x29 , 0x2e , 0x64 , 0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x2e ,
@ -338,36 +343,38 @@ var file_downloader_proto_rawDesc = []byte{
0x65 , 0x18 , 0x07 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x04 , 0x73 , 0x69 , 0x7a , 0x65 , 0x12 , 0x28 , 0x0a ,
0x0f , 0x72 , 0x65 , 0x67 , 0x69 , 0x73 , 0x74 , 0x65 , 0x72 , 0x57 , 0x69 , 0x74 , 0x68 , 0x53 , 0x69 , 0x67 ,
0x18 , 0x08 , 0x20 , 0x01 , 0x28 , 0x08 , 0x52 , 0x0f , 0x72 , 0x65 , 0x67 , 0x69 , 0x73 , 0x74 , 0x65 , 0x72 ,
0x57 , 0x69 , 0x74 , 0x68 , 0x53 , 0x69 , 0x67 , 0x22 , 0x99 , 0x01 , 0x0a , 0x0b , 0x52 , 0x65 , 0x71 , 0x75 ,
0x65 , 0x73 , 0x74 , 0x54 , 0x79 , 0x70 , 0x65 , 0x12 , 0x0d , 0x0a , 0x09 , 0x42 , 0x4c , 0x4f , 0x43 , 0x4b ,
0x48 , 0x41 , 0x53 , 0x48 , 0x10 , 0x00 , 0x12 , 0x09 , 0x0a , 0x05 , 0x42 , 0x4c , 0x4f , 0x43 , 0x4b , 0x10 ,
0x01 , 0x12 , 0x0c , 0x0a , 0x08 , 0x4e , 0x45 , 0x57 , 0x42 , 0x4c , 0x4f , 0x43 , 0x4b , 0x10 , 0x02 , 0x12 ,
0x0f , 0x0a , 0x0b , 0x42 , 0x4c , 0x4f , 0x43 , 0x4b , 0x48 , 0x45 , 0x49 , 0x47 , 0x48 , 0x54 , 0x10 , 0x03 ,
0x12 , 0x0c , 0x0a , 0x08 , 0x52 , 0x45 , 0x47 , 0x49 , 0x53 , 0x54 , 0x45 , 0x52 , 0x10 , 0x04 , 0x12 , 0x13 ,
0x0a , 0x0f , 0x52 , 0x45 , 0x47 , 0x49 , 0x53 , 0x54 , 0x45 , 0x52 , 0x54 , 0x49 , 0x4d , 0x45 , 0x4f , 0x55 ,
0x54 , 0x10 , 0x05 , 0x12 , 0x0b , 0x0a , 0x07 , 0x55 , 0x4e , 0x4b , 0x4e , 0x4f , 0x57 , 0x4e , 0x10 , 0x06 ,
0x12 , 0x0f , 0x0a , 0x0b , 0x42 , 0x4c , 0x4f , 0x43 , 0x4b , 0x48 , 0x45 , 0x41 , 0x44 , 0x45 , 0x52 , 0x10 ,
0x07 , 0x12 , 0x10 , 0x0a , 0x0c , 0x42 , 0x4c , 0x4f , 0x43 , 0x4b , 0x57 , 0x49 , 0x54 , 0x48 , 0x53 , 0x49 ,
0x47 , 0x10 , 0x08 , 0x22 , 0xd4 , 0x01 , 0x0a , 0x12 , 0x44 , 0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 ,
0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x18 , 0x0a , 0x07 , 0x70 , 0x61 ,
0x79 , 0x6c , 0x6f , 0x61 , 0x64 , 0x18 , 0x01 , 0x20 , 0x03 , 0x28 , 0x0c , 0x52 , 0x07 , 0x70 , 0x61 , 0x79 ,
0x6c , 0x6f , 0x61 , 0x64 , 0x12 , 0x47 , 0x0a , 0x04 , 0x74 , 0x79 , 0x70 , 0x65 , 0x18 , 0x02 , 0x20 , 0x01 ,
0x28 , 0x0e , 0x32 , 0x33 , 0x2e , 0x64 , 0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x2e ,
0x44 , 0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e ,
0x73 , 0x65 , 0x2e , 0x52 , 0x65 , 0x67 , 0x69 , 0x73 , 0x74 , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f ,
0x6e , 0x73 , 0x65 , 0x54 , 0x79 , 0x70 , 0x65 , 0x52 , 0x04 , 0x74 , 0x79 , 0x70 , 0x65 , 0x12 , 0x20 , 0x0a ,
0x0b , 0x62 , 0x6c , 0x6f , 0x63 , 0x6b , 0x48 , 0x65 , 0x69 , 0x67 , 0x68 , 0x74 , 0x18 , 0x03 , 0x20 , 0x01 ,
0x28 , 0x04 , 0x52 , 0x0b , 0x62 , 0x6c , 0x6f , 0x63 , 0x6b , 0x48 , 0x65 , 0x69 , 0x67 , 0x68 , 0x74 , 0x22 ,
0x39 , 0x0a , 0x14 , 0x52 , 0x65 , 0x67 , 0x69 , 0x73 , 0x74 , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f ,
0x6e , 0x73 , 0x65 , 0x54 , 0x79 , 0x70 , 0x65 , 0x12 , 0x0b , 0x0a , 0x07 , 0x53 , 0x55 , 0x43 , 0x43 , 0x45 ,
0x53 , 0x53 , 0x10 , 0x00 , 0x12 , 0x08 , 0x0a , 0x04 , 0x46 , 0x41 , 0x49 , 0x4c , 0x10 , 0x01 , 0x12 , 0x0a ,
0x0a , 0x06 , 0x49 , 0x4e , 0x53 , 0x59 , 0x4e , 0x43 , 0x10 , 0x02 , 0x32 , 0x56 , 0x0a , 0x0a , 0x44 , 0x6f ,
0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x12 , 0x48 , 0x0a , 0x05 , 0x51 , 0x75 , 0x65 , 0x72 ,
0x79 , 0x12 , 0x1d , 0x2e , 0x64 , 0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x2e , 0x44 ,
0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 ,
0x1a , 0x1e , 0x2e , 0x64 , 0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x2e , 0x44 , 0x6f ,
0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 ,
0x22 , 0x00 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
0x57 , 0x69 , 0x74 , 0x68 , 0x53 , 0x69 , 0x67 , 0x12 , 0x2a , 0x0a , 0x10 , 0x67 , 0x65 , 0x74 , 0x42 , 0x6c ,
0x6f , 0x63 , 0x6b , 0x73 , 0x57 , 0x69 , 0x74 , 0x68 , 0x53 , 0x69 , 0x67 , 0x18 , 0x09 , 0x20 , 0x01 , 0x28 ,
0x08 , 0x52 , 0x10 , 0x67 , 0x65 , 0x74 , 0x42 , 0x6c , 0x6f , 0x63 , 0x6b , 0x73 , 0x57 , 0x69 , 0x74 , 0x68 ,
0x53 , 0x69 , 0x67 , 0x22 , 0x87 , 0x01 , 0x0a , 0x0b , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x54 ,
0x79 , 0x70 , 0x65 , 0x12 , 0x0d , 0x0a , 0x09 , 0x42 , 0x4c , 0x4f , 0x43 , 0x4b , 0x48 , 0x41 , 0x53 , 0x48 ,
0x10 , 0x00 , 0x12 , 0x09 , 0x0a , 0x05 , 0x42 , 0x4c , 0x4f , 0x43 , 0x4b , 0x10 , 0x01 , 0x12 , 0x0c , 0x0a ,
0x08 , 0x4e , 0x45 , 0x57 , 0x42 , 0x4c , 0x4f , 0x43 , 0x4b , 0x10 , 0x02 , 0x12 , 0x0f , 0x0a , 0x0b , 0x42 ,
0x4c , 0x4f , 0x43 , 0x4b , 0x48 , 0x45 , 0x49 , 0x47 , 0x48 , 0x54 , 0x10 , 0x03 , 0x12 , 0x0c , 0x0a , 0x08 ,
0x52 , 0x45 , 0x47 , 0x49 , 0x53 , 0x54 , 0x45 , 0x52 , 0x10 , 0x04 , 0x12 , 0x13 , 0x0a , 0x0f , 0x52 , 0x45 ,
0x47 , 0x49 , 0x53 , 0x54 , 0x45 , 0x52 , 0x54 , 0x49 , 0x4d , 0x45 , 0x4f , 0x55 , 0x54 , 0x10 , 0x05 , 0x12 ,
0x0b , 0x0a , 0x07 , 0x55 , 0x4e , 0x4b , 0x4e , 0x4f , 0x57 , 0x4e , 0x10 , 0x06 , 0x12 , 0x0f , 0x0a , 0x0b ,
0x42 , 0x4c , 0x4f , 0x43 , 0x4b , 0x48 , 0x45 , 0x41 , 0x44 , 0x45 , 0x52 , 0x10 , 0x07 , 0x22 , 0xd4 , 0x01 ,
0x0a , 0x12 , 0x44 , 0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 ,
0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x18 , 0x0a , 0x07 , 0x70 , 0x61 , 0x79 , 0x6c , 0x6f , 0x61 , 0x64 , 0x18 ,
0x01 , 0x20 , 0x03 , 0x28 , 0x0c , 0x52 , 0x07 , 0x70 , 0x61 , 0x79 , 0x6c , 0x6f , 0x61 , 0x64 , 0x12 , 0x47 ,
0x0a , 0x04 , 0x74 , 0x79 , 0x70 , 0x65 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0e , 0x32 , 0x33 , 0x2e , 0x64 ,
0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x2e , 0x44 , 0x6f , 0x77 , 0x6e , 0x6c , 0x6f ,
0x61 , 0x64 , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x2e , 0x52 , 0x65 , 0x67 ,
0x69 , 0x73 , 0x74 , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x54 , 0x79 , 0x70 ,
0x65 , 0x52 , 0x04 , 0x74 , 0x79 , 0x70 , 0x65 , 0x12 , 0x20 , 0x0a , 0x0b , 0x62 , 0x6c , 0x6f , 0x63 , 0x6b ,
0x48 , 0x65 , 0x69 , 0x67 , 0x68 , 0x74 , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x04 , 0x52 , 0x0b , 0x62 , 0x6c ,
0x6f , 0x63 , 0x6b , 0x48 , 0x65 , 0x69 , 0x67 , 0x68 , 0x74 , 0x22 , 0x39 , 0x0a , 0x14 , 0x52 , 0x65 , 0x67 ,
0x69 , 0x73 , 0x74 , 0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x54 , 0x79 , 0x70 ,
0x65 , 0x12 , 0x0b , 0x0a , 0x07 , 0x53 , 0x55 , 0x43 , 0x43 , 0x45 , 0x53 , 0x53 , 0x10 , 0x00 , 0x12 , 0x08 ,
0x0a , 0x04 , 0x46 , 0x41 , 0x49 , 0x4c , 0x10 , 0x01 , 0x12 , 0x0a , 0x0a , 0x06 , 0x49 , 0x4e , 0x53 , 0x59 ,
0x4e , 0x43 , 0x10 , 0x02 , 0x32 , 0x56 , 0x0a , 0x0a , 0x44 , 0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 ,
0x65 , 0x72 , 0x12 , 0x48 , 0x0a , 0x05 , 0x51 , 0x75 , 0x65 , 0x72 , 0x79 , 0x12 , 0x1d , 0x2e , 0x64 , 0x6f ,
0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x2e , 0x44 , 0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 ,
0x64 , 0x65 , 0x72 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a , 0x1e , 0x2e , 0x64 , 0x6f , 0x77 ,
0x6e , 0x6c , 0x6f , 0x61 , 0x64 , 0x65 , 0x72 , 0x2e , 0x44 , 0x6f , 0x77 , 0x6e , 0x6c , 0x6f , 0x61 , 0x64 ,
0x65 , 0x72 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x00 , 0x62 , 0x06 , 0x70 , 0x72 ,
0x6f , 0x74 , 0x6f , 0x33 ,
}
var (