Merge branch 'master' of ssh://phabricator.internetapi.cn/source/bdledger-grpc-api

This commit is contained in:
OliveDS 2020-04-03 19:16:26 +08:00
commit 6be578b502

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;
@ -54,6 +60,8 @@ message GetBlocksResponse {
}
message CountBlocksResponse {
uint64 count = 1;
int64 start_timestamp = 2;
int64 end_timestamp = 3;
}
message GetTransactionByHashRequest {
@ -86,4 +94,6 @@ message GetTransactionsResponse {
}
message CountTransactionsResponse {
uint64 count = 1;
int64 start_timestamp = 2;
int64 end_timestamp = 3;
}