mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-21 07:24:36 +00:00
state: proto migration (#4951)
This commit is contained in:
+2
-1
@@ -21,7 +21,8 @@ func validateBlock(evidencePool EvidencePool, stateDB dbm.DB, state State, block
|
||||
}
|
||||
|
||||
// Validate basic info.
|
||||
if block.Version != state.Version.Consensus {
|
||||
if block.Version.App != state.Version.Consensus.App ||
|
||||
block.Version.Block != state.Version.Consensus.Block {
|
||||
return fmt.Errorf("wrong Block.Header.Version. Expected %v, got %v",
|
||||
state.Version.Consensus,
|
||||
block.Version,
|
||||
|
||||
Reference in New Issue
Block a user