-
Notifications
You must be signed in to change notification settings - Fork 329
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
Recover from action handling panic #4513
base: master
Are you sure you want to change the base?
Conversation
ap.DeleteAction(caller) | ||
actionIterator.PopAccount() | ||
continue | ||
case action.ErrPanicButReverted: |
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.
if panic but reverted, continue when mint and terminate when validate block
sn := ws.Snapshot() | ||
defer func() { | ||
if err != nil { | ||
if e := ws.Revert(sn); e != nil { |
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.
Not sure if the Revert()
will be a hard fork here. We may need run fullsync
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.
can we add some unit test?
Quality Gate passedIssues Measures |
Description
Capture exceptions when processing transactions to prevent the program from exiting abnormally, and instead remove problematic transactions.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: