-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Enable easy rolling back to your own local statesync snapshot #10198
Labels
Comments
4 tasks
This is a super needed feature also allowing someone to stop their node, snapshot, delete all other data, then restore from that snapshot would be amazing. To do both of these I believe we need the commit store exposed on the app. |
completed and backported to 0.46 & 0.47 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Currently there is no convenient method to roll back to a state snapshot that you have on your own machine. However all of the data is there (as your node will be serving it to other nodes) We should make it possible to revert your node back to a local snapshot.
As a validator, this would save me from so many issues when I accidentally do something that corrupts part of the db, and I am forced to revert my state. At the moment I have to download from a snapshot, as state sync was broken for several SDK, Tendermint version pairings, or re-state sync on pairings that work.
At upgrade time, there are a class of issues for which this is immensely helpful.
As a developer, it is very convenient to be able to quickly roll back to test something about a prior chain version, or test performance improvements against the live chain.
Proposal
Build a command that makes your own node roll back state to a prior version it has snapshotted for state sync.
For Admin Use
The text was updated successfully, but these errors were encountered: