mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-21 06:36:19 +00:00
evidence: cap evidence to an absolute number (#4780)
The number of evidence that can be committed in a single block is capped by a new evidence parameter called MaxNum
This commit is contained in:
@@ -96,7 +96,7 @@ func TestProposingAndCommittingEvidence(t *testing.T) {
|
||||
assert.False(t, pool.IsCommitted(evidence))
|
||||
|
||||
// test evidence is proposed
|
||||
proposedEvidence := pool.PendingEvidence(-1)
|
||||
proposedEvidence := pool.AllPendingEvidence()
|
||||
assert.Equal(t, proposedEvidence[0], evidence)
|
||||
|
||||
// evidence seen and committed:
|
||||
|
||||
Reference in New Issue
Block a user