This is the first piece needed in order to cap the size of proof pools by the
number of proofs. A simple cache of the proof count is provided to short
circuit the O(n) loop if nothing in the pool has changed.
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABC1302000df761: [avalanche] Add a way to count the number of proofs in a ProofPool
ninja check-avalanche
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
src/avalanche/proofpool.cpp | ||
---|---|---|
72 ↗ | (On Diff #33798) | Technically this is redundant with the flag set in addProofIfNoConflict() but it's good form in case the implementation in this function changes in the future. |
src/avalanche/proofpool.cpp | ||
---|---|---|
87 ↗ | (On Diff #33798) | You need to clear the cache here. |