-
Notifications
You must be signed in to change notification settings - Fork 682
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
Fix: better win detection on restart #5752
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.
This looks good 👍. On a similar note, we may also want to open another issue to resume mining if the miner restarted in the middle of a tenure that it is winning. I don't think that is currently in place either.
Well, let me see if this PR addresses that too. |
It doesn't! But now I have a test for it. Opened issue #5754 |
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
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.
Nice!
I went ahead an fixed the conflict (it was just the Changelog) |
Sorry you gotta update the test to use |
Description
This improves how miners detect whether or not they won a sortition. This mostly impacts miners on restarts, because previously they used in-memory state to detect a winning sortition (#5750)