Page MenuHomePhabricator

[avalanche] Add a way to get the lowest scoring proof in a pool
ClosedPublic

Authored by sdulfari on Jun 3 2022, 04:11.

Details

Summary

This is the next piece needed in order to cap the size of proof pools by the
number of proofs. The PeerManager can use this to kick out the lowest scoring
proof and replace it with a better candidate so the validProofPool always
contains the best limited set of proofs. This can be used in a similar way to
limit the orphan pool.

Depends on D11561

Test Plan
ninja check-avalanche

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable