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
- Branch
- proofpool-count
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 19263 Build 38273: Build Diff lint-circular-dependencies · build-without-wallet · build-debug · build-clang-tidy · build-diff · build-clang Build 38272: arc lint + arc unit
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. |