e2e: add evidence tests (#9292)

This commit is contained in:
Callum Waters
2022-08-22 13:33:47 +02:00
committed by GitHub
parent 2d8df1bd4e
commit b37f062619
34 changed files with 925 additions and 200 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)
}