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

SIP: Resume Replay #3519

Open
mvandeberg opened this issue Sep 27, 2019 · 1 comment
Open

SIP: Resume Replay #3519

mvandeberg opened this issue Sep 27, 2019 · 1 comment

Comments

@mvandeberg
Copy link
Contributor

If steemd is terminated during a replay, it likely shuts down in the middle of processing a block, making it impossible to resume the replay. And if it does shut down cleanly, it will continue by syncing from the live network despite having the blocks locally.

We need some extra infrastructure to ensure that if steemd is shut down mid reindex, it shuts down completely.

Then, if a node starts back up and the state head block is earlier than the block log head block, the node should enter a "resumed" replay state that takes blocks from the block log rather than syncing those same blocks from the p2p network.

This will greatly increase the robustness of steemd nodes by providing some much needed "quality of life" features to node operators.

Combined with the platform independent state files (#3084) this will make it trivial to generate intermediate snapshots, and will reduce the headache incurred by stopping a replay close to the head block.

@fernandosoder
Copy link

Please, do it.

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

No branches or pull requests

2 participants