Add include_transactions option to getBlocks API

This commit is contained in:
Nex 2020-04-02 17:24:11 +08:00
parent 87107ad3db
commit 9f8985cd33

View File

@ -46,6 +46,12 @@ message BlocksRequest {
int64 start_timestamp = 2;
int64 end_timestamp = 3;
repeated BlockFilter filters = 4;
enum IncludeTransactions {
NONE = 0; //
HASH = 1; //
FULL = 2; //
}
IncludeTransactions include_transactions = 5;
}
message GetBlocksResponse {
repeated Block blocks = 1;