Page MenuHomePhabricator

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

Authored by sdulfari on Sep 28 2022, 18:01.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC5f75c2e74f53: [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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable