HomePhabricator

[avalanche] Make ProofPool's for each proof logic public

Description

[avalanche] Make ProofPool's for each proof logic public

Summary:
forEachProof() can be used more generically. A follow up patch will sum immature
proof stakes in the getavalancheinfo RPC.

This patch demonstrates its usage by replacing the guts of countProofs()

Test Plan:

ninja check

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
sdulfariAuthored on Sep 28 2022, 17:56
sdulfariPushed on Sep 28 2022, 19:07
Reviewer
Restricted Project
Differential Revision
D12086: [avalanche] Make ProofPool's for each proof logic public
Parents
rABCf78e8db284cb: [Cashtab] Patch font color for One To Many Airdrop Payment Outputs input
Branches
Unknown
Tags
Unknown