Merge pull request #967 from tendermint/feature/total-tx

Add TotalTx to block header
This commit is contained in:
Anton Kaliaev
2017-12-13 17:09:48 -06:00
committed by GitHub
9 changed files with 132 additions and 24 deletions
+5 -4
View File
@@ -113,10 +113,11 @@ func genHeader(chainID string, height int64, txs types.Txs,
vals *types.ValidatorSet, appHash []byte) *types.Header {
return &types.Header{
ChainID: chainID,
Height: height,
Time: time.Now(),
NumTxs: len(txs),
ChainID: chainID,
Height: height,
Time: time.Now(),
NumTxs: int64(len(txs)),
TotalTxs: int64(len(txs)),
// LastBlockID
// LastCommitHash
ValidatorsHash: vals.Hash(),