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

@@ -112,7 +112,7 @@ func makeBlock(height int64, state *sm.State) *types.Block {
block, _ := types.MakeBlock(height, "test_chain", makeTxs(height),
state.LastBlockTotalTx, new(types.Commit),
prevBlockID, valHash, state.AppHash,
state.Params.Hash(),
state.LastConsensusHash,
state.Params.BlockGossipParams.BlockPartSizeBytes)
return block
}