Id -> ID using gogo

This commit is contained in:
Jae Kwon
2017-12-20 17:32:32 -08:00
parent 98a38737c4
commit e4b9f1abe7
2 changed files with 122 additions and 118 deletions

View File

@@ -1,6 +1,8 @@
syntax = "proto3";
package types;
// For more information on gogo.proto, see:
// https://github.com/gogo/protobuf/blob/master/extensions.md
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
// This file is copied from http://github.com/tendermint/abci
@@ -184,7 +186,7 @@ message TxSize{
// BlockGossip determine consensus critical
// elements of how blocks are gossiped
message BlockGossip{
message BlockGossip {
// Note: must not be 0
int32 block_part_size_bytes = 1;
}
@@ -193,11 +195,11 @@ message BlockGossip{
// Blockchain Types
message Header {
string chain_id = 1;
string chain_id = 1 [(gogoproto.customname) = "ChainID"];
int64 height = 2;
int64 time = 3;
int32 num_txs = 4;
BlockID last_block_id = 5;
BlockID last_block_id = 5 [(gogoproto.customname) = "LastBlockID"];
bytes last_commit_hash = 6;
bytes data_hash = 7;
bytes validators_hash = 8;