abci header takes ValidatorsHash

This commit is contained in:
Ethan Buchman
2018-06-06 00:28:12 -07:00
parent 71556c62eb
commit 2897685c57
3 changed files with 12 additions and 11 deletions
+7 -6
View File
@@ -32,12 +32,13 @@ type tm2pb struct{}
func (tm2pb) Header(header *Header) abci.Header {
return abci.Header{
ChainID: header.ChainID,
Height: header.Height,
Time: header.Time.Unix(),
NumTxs: int32(header.NumTxs), // XXX: overflow
LastBlockHash: header.LastBlockID.Hash,
AppHash: header.AppHash,
ChainID: header.ChainID,
Height: header.Height,
Time: header.Time.Unix(),
NumTxs: int32(header.NumTxs), // XXX: overflow
LastBlockHash: header.LastBlockID.Hash,
ValidatorsHash: header.ValidatorsHash,
AppHash: header.AppHash,
}
}