Store LastConsensusHash in State as well

Update all BlockValidation that it matches the last state
This commit is contained in:
Ethan Frey
2017-12-14 10:53:36 +01:00
committed by Ethan Buchman
parent 45bc106de7
commit 960b25408f
6 changed files with 9 additions and 8 deletions

View File

@ -120,7 +120,7 @@ func makeBlock(height int64, state *State) *types.Block {
block, _ := types.MakeBlock(height, chainID,
makeTxs(height), state.LastBlockTotalTx,
new(types.Commit), prevBlockID, valHash,
state.AppHash, state.Params.Hash(), testPartSize)
state.AppHash, state.LastConsensusHash, testPartSize)
return block
}