-
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
[1.0.4] Fast shutdown in irreversible mode #1061
Conversation
// In irreversible mode, break every ~500ms to allow other tasks (e.g. get_info, SHiP) opportunity to run. There is a post | ||
// for every incoming blocks; enough posted tasks to apply all blocks queued to the fork db. | ||
if (read_mode == db_read_mode::IRREVERSIBLE) { | ||
if (!replaying && fc::time_point::now() - start > fc::milliseconds(500)) |
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.
Shouldn't start
be reset?
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.
Once this returns false
, the method exits.
Note:start |
Faster shutdown in response to ctrl-c/SIGINT/SIGTERM/SIGPIPE especially when syncing in irreversible mode.
Resolves #1053