Actually only the peer registration time is stored, this diff does it for all the proofs. This will be used to expire the proofs that have been inactive for long enough.
The peer registration time will eventually be replaced by this time as well to avoid duplication, but this will be another diff.
Details
Details
- Reviewers
sdulfari - Group Reviewers
Restricted Project
ninja all check-all
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- avalanche_proofpool_registrationtime
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 19409 Build 38551: Build Diff lint-circular-dependencies · build-diff · build-without-wallet · build-clang · build-debug · build-clang-tidy Build 38550: arc lint + arc unit
Event Timeline
Comment Actions
Only blocking on the public API change.
src/avalanche/proofpool.h | ||
---|---|---|
42 ↗ | (On Diff #34040) | Nit: "registration" is a term already used by the peer manager and means slightly different things than it does here. I think this should be ok as long as a divide doesn't grow between the meaning of "adding" a proof to a pool and "registering" it. Something to think about. |
145 ↗ | (On Diff #34040) | The public API should return std::chrono::duration. Implementation can remain as int64_t |
src/avalanche/test/proofpool_tests.cpp | ||
372 ↗ | (On Diff #34040) | poool |
Comment Actions
Update the API to return an optional std::chrono::seconds, adapt thet tests accordingly, fix typo