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:
Anton Kaliaev
2020-06-23 12:14:16 +04:00
committed by GitHub
co-authored by JamesRay
parent 0b13059216
commit ceac02b891
15 changed files with 573 additions and 286 deletions
+2 -2
View File
@@ -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 {