HomePhabricator

[avalanche] Improve const correctness of ProofPool::countProofs()

Description

[avalanche] Improve const correctness of ProofPool::countProofs()

Summary:
ProofPool has historically been a construct only manipulated by PeerManager.
We can cleanup PeerManager's API by exposing the pools but first we need to
ensure ProofPool's API is also clean and acceptable for use outside of the
context of PeerManager. This means not accidentially altering pools that we
fetch from PeerManager.

Test Plan:

ninja check

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
sdulfariAuthored on Sep 23 2022, 18:09
sdulfariPushed on Sep 26 2022, 17:00
Reviewer
Restricted Project
Differential Revision
D12050: [avalanche] Improve const correctness of ProofPool::countProofs()
Parents
rABC9992a55e439a: [Chronik] Rename `setup_bridge` to `setup_chronik`
Branches
Unknown
Tags
Unknown