Page MenuHomePhabricator

[avalanche] Simplify the proof counting in ProofPool
AbandonedPublic

Authored by Fabien on Jun 17 2022, 15:45.

Details

Reviewers
sdulfari
Group Reviewers
Restricted Project
Summary

Now that we have a container using the proofid as an index, gettng the number of proofs is as simple as getting this container size.
Also since there is no reason to cache the value anymore, the peermanager use of countProofs can be greatly simplified.
There is no change in behavior.

Depends on D11635.

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Branch
avalanche_simplify_proofcount
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 19405
Build 38543: Build Difflint-circular-dependencies · build-without-wallet · build-diff · build-debug · build-clang · build-clang-tidy
Build 38542: arc lint + arc unit