mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 23:14:37 +00:00
types: add AppVersion to ConsensusParams (#5031)
Co-authored-by: JamesRay <66258875@qq.com> making it possible to change app version via EndBlock
This commit is contained in:
co-authored by
JamesRay
parent
0b13059216
commit
ceac02b891
@@ -46,9 +46,9 @@ func TestValidateBlockHeader(t *testing.T) {
|
||||
// some bad values
|
||||
wrongHash := tmhash.Sum([]byte("this hash is wrong"))
|
||||
wrongVersion1 := state.Version.Consensus
|
||||
wrongVersion1.Block++
|
||||
wrongVersion1.Block += 2
|
||||
wrongVersion2 := state.Version.Consensus
|
||||
wrongVersion2.App++
|
||||
wrongVersion2.App += 2
|
||||
|
||||
// Manipulation of any header field causes failure.
|
||||
testCases := []struct {
|
||||
|
||||
Reference in New Issue
Block a user