mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 21:01:21 +00:00
Compare blockhashes in stageBlock()
This commit is contained in:
@ -1015,7 +1015,8 @@ func (cs *ConsensusState) stageBlock(block *types.Block, blockParts *types.PartS
|
||||
}
|
||||
|
||||
// Already staged?
|
||||
if cs.stagedBlock == block {
|
||||
blockHash := block.Hash()
|
||||
if cs.stagedBlock != nil && len(blockHash) != 0 && bytes.Equal(cs.stagedBlock.Hash(), blockHash) {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user