The core protocol of WoopChain
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.
woop/syncing/downloader/proto/downloader.proto

30 lines
629 B

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;
// The hashes of the blocks we want to download.
repeated bytes hashes = 2;
}
// DownloaderResponse is the generic response of DownloaderRequest.
message DownloaderResponse {
// payload of Block.
repeated bytes payload = 1;
}