validation: fix misleading VerifyDB summary log #35145

pull ViniciusCestarii wants to merge 1 commits into bitcoin:master from ViniciusCestarii:verifydb-cleanup changing 1 files +4 −1
  1. ViniciusCestarii commented at 5:09 PM on April 23, 2026: contributor

    The final LogInfo message about "No coin database inconsistencies" was printed unconditionally, even for check levels 0-2 where no coin DB verification runs and nGoodTransactions stays 0. Split into an always-on completion line and a coin-DB result line gated on nCheckLevel >= 3 && !skipped_l3_checks.

    Before (checklevel=1): Verification: No coin database inconsistencies in last 6 blocks (0 transactions)

    After (checklevel=1): Verification: checked last 6 blocks at level 1

  2. DrahtBot renamed this:
    log: fix misleading VerifyDB summary and drop dead check
    log: fix misleading VerifyDB summary and drop dead check
    on Apr 23, 2026
  3. DrahtBot added the label Utils/log/libs on Apr 23, 2026
  4. DrahtBot commented at 5:09 PM on April 23, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK sedited

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  5. ViniciusCestarii renamed this:
    log: fix misleading VerifyDB summary and drop dead check
    validation: fix misleading VerifyDB summary log
    on Apr 24, 2026
  6. DrahtBot renamed this:
    validation: fix misleading VerifyDB summary log
    validation: fix misleading VerifyDB summary log
    on Apr 24, 2026
  7. dergoegge commented at 1:23 PM on April 27, 2026: member

    The bottleneck in this project has always been review and testing, not writing code. Development here is intentionally conservative and slow, and reviewer attention is the scarcest resource we have. LLMs have made this worse, anyone can now prompt them and post their output as PRs. There is an infinite amount plausible looking "improvements" for LLMs to suggest and work on.

    Unless we fully trust LLMs to both write and review code, humans still have to spend time understanding the proposed changes, which incurs a non-zero cost for every opened PR.

    I understand that contributing to this project can be intimidating, and using LLMs may seem tempting, but it really creates more issues for this project than it solves. The best way to help this project, is to review and test changes. You can use LLMs for this, but you shouldn't solely rely on them, or just post their output.

    I'm not asking you to close this PR. I am asking you to reconsider whether it's something you genuinely think the project should pursue, independent of what your LLM suggested.

  8. ViniciusCestarii commented at 1:51 PM on April 27, 2026: contributor

    @dergoegge Thanks for the honest feedback

    I did use LLM to write this PR. I did reason about it and thought it was worth fixing when I ran bitcoin-cli verifychain 1 and saw the logs mentioning "No coin database inconsistencies" using a checklevel that doens't check coins.

    The redundant pindex check in point 1 is more cosmetic

    Happy to close it entirely if you don't think the log fix justifies the review burden.

    I agree that more reviews and testing are what Core needs. I'll spend my time on that instead, and only open a PR of my own when I'm sure it's actually worth someone's time to look at.

  9. sedited commented at 2:01 PM on April 27, 2026: contributor

    The redundant pindex check in point 1 is more cosmetic

    If it is a simple log fix, then the chance that I can review and merge it promptly is high. If there are other cosmetic changes sprinkled in between, it takes more effort and time. Please try to keep PRs focused. In this particular case, it looks like that check is there to show the programmer that it is a valid pointer and should therefore not be removed.

  10. log: clarify VerifyDB summary log 1d66963749
  11. ViniciusCestarii force-pushed on Apr 27, 2026
  12. ViniciusCestarii commented at 2:34 PM on April 27, 2026: contributor

    @sedited Thanks, updated the PR to make it focused on the log issue

  13. sedited approved
  14. sedited commented at 1:13 PM on May 2, 2026: contributor

    ACK 1d669637495d98241f3aa8637b5f58934eceb07f


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-03 18:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me