-
Notifications
You must be signed in to change notification settings - Fork 8
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
Irreversible mode improvements #1086
Conversation
…sult in irreversible mode so incomplete apply is handled correctly.
…pply_blocks in non-irreversible mode.
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.
I think that this would have been equivalent to leaving the check in should_process
, setting result
to incomplete
before entering the loop, not updating it within the loop, and setting it to complete after the loop if the iterator is at end().
If you think that is clearer, I can change it. |
Up to you what you think is best since you are the one maintaining this code generally. I'm fine either way. |
Note:start |
apply_blocks
result in irreversible mode so incomplete apply is handled correctly.Test failed because irreversible mode nodeos would not transition to Savanna. It would not transition because the
log_irreversible
was incomplete but nothing calledapply_blocks
again to continue the process.Resolves #1082