You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
629 B
30 lines
629 B
6 years ago
|
syntax = "proto3";
|
||
|
|
||
|
package downloader;
|
||
|
|
||
|
// Downloader is the service used for downloading/sycning blocks.
|
||
|
service Downloader {
|
||
|
rpc Query(DownloaderRequest) returns (DownloaderResponse) {}
|
||
|
}
|
||
|
|
||
|
// DownloaderRequest is the generic download request.
|
||
|
message DownloaderRequest {
|
||
|
enum RequestType {
|
||
|
HEADER = 0;
|
||
|
BLOCK = 1;
|
||
|
UNKOWN = 2;
|
||
|
}
|
||
|
|
||
|
// Request type.
|
||
|
RequestType type = 1;
|
||
|
|
||
6 years ago
|
// The hashes of the blocks we want to download.
|
||
|
repeated bytes hashes = 2;
|
||
6 years ago
|
}
|
||
|
|
||
|
// DownloaderResponse is the generic response of DownloaderRequest.
|
||
|
message DownloaderResponse {
|
||
|
// payload of Block.
|
||
|
repeated bytes payload = 1;
|
||
|
}
|