Repository navigation
refactor: Use type-safe time in txorphanage - #30170
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
Concept ACK |
|
utACK fa6d489. |
| unsigned int nEvicted = 0; | ||
| static int64_t nNextSweep; | ||
| int64_t nNow = GetTime(); | ||
| static NodeSeconds nNextSweep; |
There was a problem hiding this comment.
Out of scope for this PR but this global is probably the source of instability in the txorphan harness.
Summary: ``` This allows to remove manual conversions like multiplication by 60, and uses a type-safe type instead of a raw int64_t. ``` Backport of [[bitcoin/bitcoin#30170 | core#30170]]. Depends on D16498. Test Plan: ninja all check-all Reviewers: #bitcoin_abc, PiRK Reviewed By: #bitcoin_abc, PiRK Differential Revision: https://reviews.bitcoinabc.org/D16501
Summary: ``` This allows to remove manual conversions like multiplication by 60, and uses a type-safe type instead of a raw int64_t. ``` Backport of [[bitcoin/bitcoin#30170 | core#30170]]. Depends on D16498. Test Plan: ninja all check-all Reviewers: #bitcoin_abc, PiRK Reviewed By: #bitcoin_abc, PiRK Differential Revision: https://reviews.bitcoinabc.org/D16501
This allows to remove manual conversions like multiplication by
60, and uses a type-safe type instead of a rawint64_t.