10000 Remove confusing and useless "unexpected version" warning by maflcko · Pull Request #20054 · bitcoin/bitcoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove confusing and useless "unexpected version" warning #20054

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

Merged
merged 1 commit into from
Nov 19, 2020

Conversation

maflcko
Copy link
Member
@maflcko maflcko commented Oct 1, 2020

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?

@hebasto
Copy link
Member
hebasto commented Oct 1, 2020

Related #19898.

@ajtowns
Copy link
Contributor
ajtowns commented Oct 1, 2020

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.

@maflcko
Copy link
Member Author
maflcko commented Oct 1, 2020

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.

@practicalswift
Copy link
Contributor

ACK 0000a0c

  • Benefit: Less confusion. -14 LOC.
  • Cost: None.
  • Cost-benefit verdict: 🎉

@decryp2kanon
Copy link
Contributor

ACK 0000a0c

@DrahtBot
Copy link
Contributor
DrahtBot commented Oct 15, 2020

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

Conflicts

No conflicts as of last run.

@LarryRuane
Copy link
Contributor

ACK 0000a0c

@laanwj laanwj merged commit 848d665 into bitcoin:master Nov 19, 2020
@maflcko maflcko deleted the 2010-valRemVerWarn branch November 19, 2020 15:42
@rebroad
Copy link
Contributor
rebroad commented Feb 23, 2021

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

@bitcoin bitcoin locked and limited conversation to collaborators Feb 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants
0