Skip to content

Commit

Permalink
Add test case to tamper with voters hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Mdaiki0730 committed Nov 22, 2022
1 parent 136e62c commit 8f0ab30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ func TestBlockValidateBasic(t *testing.T) {
{"Tampered EvidenceHash", func(blk *Block) {
blk.EvidenceHash = []byte("something else")
}, true},
{"Tampered VotersHash", func(blk *Block) {
blk.EvidenceHash = []byte("something else")
}, true},
{"Incorrect block protocol version", func(blk *Block) {
blk.Version.Block = 1
}, true},
Expand Down

0 comments on commit 8f0ab30

Please sign in to comment.