-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Only log a block voting error if top version is higher and isn't ideal fork version #3683
Conversation
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.
It also filters outs true positives though.
When ideal version at a given height is equal to the ideal version overall, being less than hshd.top_version implies that it's unknown and bigger than fork versions known (i.e. if I was running v6, and are getting v7 top versions from broadcasting nodes). |
In the past, we've brought a fork forward slightly when we had a planned fork, then needed to make an additional change to consensus rules. I think this would silence that one. It's a rare case I guess since it'd apply to someone who's running a master build, so these people should know what they're doing. |
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.
Could you please also PR this to the release-0.12 branch ? It'd be nice to get it active for the september fork.
You'll find a copy of the PR referenced above, as requested |
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.
Reviewed
dad1077 Only log an error if fork version is higher AND is not known. (Thaer Khawaja)
This is less likely to occur in Monero since it has a much larger hash rate, but it's possible that there are nodes mining a higher version but is forked from somewhere it's known to be otherwise (i.e. at a checkpoint that's known to be v6).
The behaviour this avoids is logging a false positive indicating a potential protocol upgrade.
I speculate that without this PR, the error may trigger if a chain fork like MoneroV doesn't properly configure their network and are broadcasting to Monero daemons.