Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmwaters committed Sep 27, 2023
1 parent ce1f3d5 commit 4b6b788
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions state/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,13 @@ func TestValidateBlockHeader(t *testing.T) {
wrongHash := tmhash.Sum([]byte("this hash is wrong"))
wrongVersion1 := state.Version.Consensus
wrongVersion1.Block += 2
wrongVersion2 := state.Version.Consensus
wrongVersion2.App += 2

// Manipulation of any header field causes failure.
testCases := []struct {
name string
malleateBlock func(block *types.Block)
}{
{"Version wrong1", func(block *types.Block) { block.Version = wrongVersion1 }},
{"Version wrong2", func(block *types.Block) { block.Version = wrongVersion2 }},
{"ChainID wrong", func(block *types.Block) { block.ChainID = "not-the-real-one" }},
{"Height wrong", func(block *types.Block) { block.Height += 10 }},
{"Time wrong", func(block *types.Block) { block.Time = block.Time.Add(-time.Second * 1) }},
Expand Down

0 comments on commit 4b6b788

Please sign in to comment.