Move required field up in BlocksRequest and TransactionsRequest

This commit is contained in:
Nex 2020-03-09 22:28:26 +08:00
commit d80d6d2544

View File

@ -43,9 +43,9 @@ message GetBlockByHashResponse {
message BlocksRequest {
string ledger = 1;
repeated BlockFilter filters = 2;
int64 start_timestamp = 3; // required
int64 end_timestamp = 4;
int64 start_timestamp = 2; // required
int64 end_timestamp = 3;
repeated BlockFilter filters = 4;
}
message GetBlocksResponse {
repeated Block blocks = 1;
@ -75,9 +75,9 @@ message GetTransactionByBlockHashAndIndexResponse {
message TransactionsRequest {
string ledger = 1;
repeated TransactionFilter filters = 2;
int64 start_timestamp = 3; // required
int64 end_timestamp = 4;
int64 start_timestamp = 2; // required
int64 end_timestamp = 3;
repeated TransactionFilter filters = 4;
}
message GetTransactionsResponse {
repeated Transaction transactions = 1;