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 { message BlocksRequest {
string ledger = 1; string ledger = 1;
repeated BlockFilter filters = 2; int64 start_timestamp = 2; // required
int64 start_timestamp = 3; // required int64 end_timestamp = 3;
int64 end_timestamp = 4; repeated BlockFilter filters = 4;
} }
message GetBlocksResponse { message GetBlocksResponse {
repeated Block blocks = 1; repeated Block blocks = 1;
@ -75,9 +75,9 @@ message GetTransactionByBlockHashAndIndexResponse {
message TransactionsRequest { message TransactionsRequest {
string ledger = 1; string ledger = 1;
repeated TransactionFilter filters = 2; int64 start_timestamp = 2; // required
int64 start_timestamp = 3; // required int64 end_timestamp = 3;
int64 end_timestamp = 4; repeated TransactionFilter filters = 4;
} }
message GetTransactionsResponse { message GetTransactionsResponse {
repeated Transaction transactions = 1; repeated Transaction transactions = 1;