Skip to content
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

Improve stop flow to reduce frequency of unclean shutdowns #66

Merged
merged 3 commits into from
Mar 31, 2022

Conversation

aaronbuchwald
Copy link
Collaborator

This PR moves the shutdown manager stop above the other functionality when stopping the blockchain to ensure that the last trie is written as early as possible and reduce the likelihood that state will need to be regenerated on a restart.

core/blockchain.go Outdated Show resolved Hide resolved
Co-authored-by: Ceyhun Onur <ceyhun.onur@avalabs.org>
@aaronbuchwald aaronbuchwald merged commit b4adb75 into master Mar 31, 2022
@aaronbuchwald aaronbuchwald deleted the bc-stop-improvements branch May 5, 2022 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants