Store LastConsensusHash in State as well

Update all BlockValidation that it matches the last state
This commit is contained in:
Ethan Frey
2017-12-19 12:28:08 -05:00
committed by Ethan Buchman
parent 45bc106de7
commit 960b25408f
6 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -866,7 +866,7 @@ func (cs *ConsensusState) createProposalBlock() (block *types.Block, blockParts
return types.MakeBlock(cs.Height, cs.state.ChainID, txs,
cs.state.LastBlockTotalTx, commit,
cs.state.LastBlockID, cs.state.Validators.Hash(),
cs.state.AppHash, cs.state.Params.Hash(),
cs.state.AppHash, cs.state.LastConsensusHash,
cs.state.Params.BlockPartSizeBytes)
}