-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: do not check chainlock state in IsTxSafeForMining #5444
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
Conversation
4c8d4d7 to
a85e6be
Compare
… mine non-locked txes
- wait for islocks on connected nodes - bump mocktime for 10 min on the isolated node
knst
left a comment
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.
LGTM
ogabrielides
left a comment
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.
utACK
|
Adding guix-build to this PR to ensure that guix-2 didn't break guix CI somehow; didn't break |
PastaPastaPasta
left a comment
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.
utACK for squash merge
Issue being fixed or feature implemented
Disabled or non-enforced Chainlocks does not mean you can safely mine non-locked txes, you could end up mining a block that is going to be rejected by everyone else if a conflicting tx (missing on your node) would be IS-locked. I can't find any reason why we have this besides "if Chainlocks are disabled then smth is wrong so let them all be mined" but we have spork_2 and spork_3 to control IS behaviour and we check them in
IsTxSafeForMiningalready, that would be a much more straightforward way to deal with a potential issue.Noticed this while reviewing #5150 and also while testing v19.2 during recent testnet v19 re-fork.
What was done?
Drop this check, adjust tests
How Has This Been Tested?
Run tests locally
Breaking Changes
Not quote breaking changes but a change in behaviour: with CLs disabled it will now take 10 minutes for non-locked txes to be mined, same as when CLs are enabled.
Checklist: