Add timestamps to count* API responses

This commit is contained in:
Nex 2020-04-02 17:23:36 +08:00
parent 5ae9bb3cb3
commit 87107ad3db

View File

@ -54,6 +54,8 @@ message GetBlocksResponse {
} }
message CountBlocksResponse { message CountBlocksResponse {
uint64 count = 1; uint64 count = 1;
int64 start_timestamp = 2;
int64 end_timestamp = 3;
} }
message GetTransactionByHashRequest { message GetTransactionByHashRequest {
@ -86,4 +88,6 @@ message GetTransactionsResponse {
} }
message CountTransactionsResponse { message CountTransactionsResponse {
uint64 count = 1; uint64 count = 1;
int64 start_timestamp = 2;
int64 end_timestamp = 3;
} }