mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-30 05:01:44 +00:00
don't cache the block/header hashes. fixes a cache invalidation bug
This commit is contained in:
@ -635,7 +635,11 @@ func (cs *ConsensusState) RunActionPropose(height uint, round uint) {
|
||||
}
|
||||
|
||||
// Set the blk.Header.StateHash.
|
||||
cs.state.SetBlockStateHash(block)
|
||||
err := cs.state.SetBlockStateHash(block)
|
||||
if err != nil {
|
||||
log.Error("Error setting state hash", "error", err)
|
||||
return
|
||||
}
|
||||
|
||||
blockParts = blk.NewPartSetFromData(binary.BinaryBytes(block))
|
||||
pol = cs.LockedPOL // If exists, is a PoUnlock.
|
||||
|
Reference in New Issue
Block a user