HomePhabricator

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

Description

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

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

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D11562

Details

Provenance
sdulfariAuthored on Jun 2 2022, 18:04
sdulfariPushed on Jun 6 2022, 23:39
Reviewer
Restricted Project
Differential Revision
D11562: [avalanche] Add a way to get the lowest scoring proof in a pool
Parents
rABC1302000df761: [avalanche] Add a way to count the number of proofs in a ProofPool
Branches
Unknown
Tags
Unknown