e2e: add evidence tests

This commit is contained in:
Callum Waters
2022-08-17 17:36:44 +02:00
parent 3003e05581
commit 294468d037
27 changed files with 788 additions and 64 deletions
+2 -1
View File
@@ -277,7 +277,8 @@ func TestCreateProposalBlock(t *testing.T) {
// than can fit in a block
var currentBytes int64
for currentBytes <= maxEvidenceBytes {
ev := types.NewMockDuplicateVoteEvidenceWithValidator(height, time.Now(), privVals[0], "test-chain")
ev, err := types.NewMockDuplicateVoteEvidenceWithValidator(height, time.Now(), privVals[0], "test-chain")
require.NoError(t, err)
currentBytes += int64(len(ev.Bytes()))
evidencePool.ReportConflictingVotes(ev.VoteA, ev.VoteB)
}