-
Notifications
You must be signed in to change notification settings - Fork 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
Reduce chance of Commits in different views if a node restarts. #643
Conversation
…twork to stall creating blocks.
…r changing view and coming to consensus.
…PrepareRequest and PrepareResponse from different views.
…cepting PrepareRequest and PrepareResponse from different views." This reverts commit 9838afc.
Conflicts: neo/Consensus/ConsensusService.cs neo/Consensus/Helper.cs
I've tested these changes and they are working as expected. |
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.
@erikzhang @jsolman @shargon, is this PR safe? I did not test it but it looks clear.
I think it is useful, thus, let's merge this inside 642.
Don't merge before NGD test. |
I built and tested here and, then, saw the approved. |
How about this PR, @jsolman and @erikzhang? |
Is this PR still necessary now? |
for this current moment no... |
In the literature, hardware faults are well considered. I think we should think ahead. |
Not really needed. Closing. |
Feel free to re-open if you want it as a precaution, but since the commits get locked, it isn’t really needed. If the commits get split node operators will be able to tell from their logs. |
If a node restarts and comes back and there have been commits in different views. This will cause the node to restore into the view it was on before it was restarted, thus minimizing the chance of a stall due to split
Commit
in different views.