mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-05 23:57:04 +00:00
Store LastConsensusHash in State as well
Update all BlockValidation that it matches the last state
This commit is contained in:
committed by
Ethan Buchman
parent
45bc106de7
commit
960b25408f
@@ -92,10 +92,6 @@ func (b *Block) ValidateBasic(chainID string, lastBlockHeight int64,
|
||||
if !bytes.Equal(b.AppHash, appHash) {
|
||||
return errors.New(cmn.Fmt("Wrong Block.Header.AppHash. Expected %X, got %v", appHash, b.AppHash))
|
||||
}
|
||||
// TODO: make testing easier
|
||||
if len(consensusHash) == 0 {
|
||||
panic("food")
|
||||
}
|
||||
if !bytes.Equal(b.ConsensusHash, consensusHash) {
|
||||
return errors.New(cmn.Fmt("Wrong Block.Header.ConsensusHash. Expected %X, got %v", consensusHash, b.ConsensusHash))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user