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
Branch
proofpool-lowest-score-proof
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 19252
Build 38251: Build Diffbuild-diff · build-without-wallet · lint-circular-dependencies · build-debug · build-clang · build-clang-tidy
Build 38250: arc lint + arc unit