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 19241 Build 38229: Build Diff build-without-wallet · lint-circular-dependencies · build-diff · build-clang-tidy · build-clang · build-debug Build 38228: arc lint + arc unit
Event Timeline
src/avalanche/proofpool.cpp | ||
---|---|---|
72 | 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 | You need to clear the cache here. |