Remove confusing and useless "unexpected version" warning #20054

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:2010-valRemVerWarn changing 1 files +1 −15
  1. MarcoFalke commented at 2:44 PM on October 1, 2020: member

    It is useless because it isn't displayed for most users:

    • It isn't displayed in normal operation (because the validation debug category is disabled by default)
    • It isn't displayed for users that sync up their nodes intermittently, e.g. once a day or once a week (because it is disabled for IBD)
    • It is only displayed in the debug log (as opposed to the versionbits warning, which is displayed more prominently)

    It is confusing because it doesn't have a use case:

    Despite the above, if a user did see the warning, it would most likely be a false positive (like it has been in the past). Even if it wasn't, there is nothing they can do about it. The only thing they could do is to check for updates and hope that a fixed version is available. But why would the user be so scrupulously precise in enabling the warning and reading the log, but then fail to regularly check update channels for updated software?

  2. Remove confusing and almost useless "unexpected version" warning 0000a0c7e9
  3. fanquake added the label Utils/log/libs on Oct 1, 2020
  4. fanquake added the label Validation on Oct 1, 2020
  5. hebasto commented at 2:53 PM on October 1, 2020: member

    Related #19898.

  6. ajtowns commented at 3:13 PM on October 1, 2020: member

    The rationale makes sense for not displaying it to users, but we don't display it to users anymore after 19898 -- it's now a debug log option, so the justification for removing it should be that it doesn't assist with development or debugging or performance tuning or similar, I think.

    FWIW, I've found it very slightly useful in that it triggered when I was working on signet soft-fork activation code and noticed those errors appearing, which revealed that kalle's node was trying to activate the testdummy soft-fork when it shouldn't have. That doesn't seem very useful though, so weak Concept ACK.

  7. MarcoFalke commented at 3:27 PM on October 1, 2020: member

    was trying to activate the testdummy soft-fork

    The existing versionbits warning is not touched by this patch. If a miner is trying to activate the testdummy soft-fork, a warning will be shown to all users when the presumed soft-fork has activated. (Both before and after this patch). I understand that the 100-block warning will hit earlier than the vb-activated warning, but it shouldn't be the responsibility of the Bitcoin Core validation code to help debug miner software. A simple RPC python script (or even a hidden test-only RPC) should be less invasive and straightforward.

  8. practicalswift commented at 4:09 PM on October 1, 2020: contributor

    ACK 0000a0c7e9e4e7c1afafe6ef75b7624f4c573190

    • Benefit: Less confusion. -14 LOC.
    • Cost: None.
    • Cost-benefit verdict: 🎉
  9. decryp2kanon commented at 2:57 PM on October 12, 2020: contributor

    ACK 0000a0c

  10. DrahtBot commented at 9:27 PM on October 15, 2020: member

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    No conflicts as of last run.

  11. LarryRuane commented at 8:28 PM on November 4, 2020: contributor

    ACK 0000a0c7e9e4e7c1afafe6ef75b7624f4c573190

  12. laanwj merged this on Nov 19, 2020
  13. laanwj closed this on Nov 19, 2020

  14. MarcoFalke deleted the branch on Nov 19, 2020
  15. rebroad commented at 6:55 PM on February 23, 2021: contributor

    It did have a use case:

    users scrupulously precise in enabling the warning and reading the log, but who fail to regularly check update channels for updated software

  16. fanquake locked this on Feb 23, 2021

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-04-13 15:14 UTC

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