From 8f0ab30c43f9ae23fd6bde326fa871cd95cdc055 Mon Sep 17 00:00:00 2001 From: Mdaiki0730 Date: Tue, 22 Nov 2022 16:07:12 +0900 Subject: [PATCH] Add test case to tamper with voters hash --- types/block_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/block_test.go b/types/block_test.go index 2c57d84dd..a13ce062b 100644 --- a/types/block_test.go +++ b/types/block_test.go @@ -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},