types: int32 with gogo int

This commit is contained in:
Ethan Buchman
2017-12-02 01:48:46 -05:00
parent 3890a2058f
commit 82d56571b5
2 changed files with 105 additions and 125 deletions

View File

@ -66,7 +66,7 @@ message RequestInitChain{
message RequestBeginBlock{
bytes hash = 1;
Header header = 2;
repeated int32 absent_validators = 3;
repeated int32 absent_validators = 3 [(gogoproto.customtype) = "int", (gogoproto.nullable) = false];
repeated Evidence byzantine_validators = 4;
}
@ -166,7 +166,7 @@ message Header {
string chain_id = 1;
int64 height = 2;
int64 time = 3;
int64 num_txs = 4;
int32 num_txs = 4 [(gogoproto.customtype) = "int", (gogoproto.nullable) = false];
BlockID last_block_id = 5;
bytes last_commit_hash = 6;
bytes data_hash = 7;
@ -180,7 +180,7 @@ message BlockID {
}
message PartSetHeader {
int64 total = 1;
int32 total = 1 [(gogoproto.customtype) = "int", (gogoproto.nullable) = false];
bytes hash = 2;
}