-
Notifications
You must be signed in to change notification settings - Fork 37.4k
fees: prevent redundant estimates flushes #32748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
fees: prevent redundant estimates flushes #32748
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32748. 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. |
21746c6
to
48a3e8f
Compare
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK 48a3e8f
Left some comments about logging.
48a3e8f
to
458fdac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed comments by @Eunovo thanks for review 21f0deaf1..458fdac
- Also log the full file path of fee_estimates.dat consistently not just the filename.
458fdac
to
4a0672f
Compare
This PR does two things:
It prevents redundant writes to the
fee_estimates.dat
file when there is no usable data available. For example, during IBD, blocks are still being connected, but unnecessary flushes still occur every hour.It updates the flushing log to use debug-level logging under the
estimatefee
category. It also ensures the log consistently includes only the full file path.