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

[state sync][bug] Cancel old state sync if node is started in the new epoch. #11650

Open
Tracked by #9575
VanBarbascu opened this issue Jun 21, 2024 · 0 comments
Open
Tracked by #9575

Comments

@VanBarbascu
Copy link
Contributor

VanBarbascu commented Jun 21, 2024

Currently, if a node started state sync in epoch A and it cannot finish syncing by the end of that epoch, it will keep trying.
If the node is restarted in another epoch B, the node should see that there is an ongoing state sync for epoch A, cancel it and start a state sync for epoch B.

For cloud based state sync, the node will still function but it will take longer to sync all the blocks from epoch A to the current epoch.

For DSS, the node will not be able to finish state sync because no peer will be able to share parts for an old epoch.

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

1 participant