Add a rolling bloom filter to remember rejected proofs and avoid verifying them multiple times.
Add an accessor method to test this filter, and add the corresponding unit test.
This is a piece of D9370 with improvements.
Differential D9423
[avalanche] Remember rejected proofs PiRK on Apr 15 2021, 13:43. Authored by
Details Add a rolling bloom filter to remember rejected proofs and avoid verifying them multiple times. Add an accessor method to test this filter, and add the corresponding unit test. This is a piece of D9370 with improvements. ninja && ninja check
Diff Detail
Event TimelineComment Actions rename recentProofRejects -> rejectedProofs. Rename the test method PeerManager::addRecentReject -> PeerManager::rejectProof Also add a comment to explain the choice of parameters for the bloom filter (same params as for transactions).
|