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: improve behavior if epoch ends during state sync #12426

Open
saketh-are opened this issue Nov 11, 2024 · 0 comments
Open

state sync: improve behavior if epoch ends during state sync #12426

saketh-are opened this issue Nov 11, 2024 · 0 comments
Labels
A-chain Area: Chain, client & related

Comments

@saketh-are
Copy link
Collaborator

Description

When a new node joins the network, it is possible for the epoch to end while the node is still in state sync.

In the current implementation:

  • The syncing nodes does not track the head of the chain and will not detect that the epoch has ended. It will continue to send requests for parts of the older snapshot it is trying to obtain.
  • The peers in the network hosting the snapshot will delete it as soon as the epoch ends.

This is not currently a critical issue because the syncing node can finish state sync from the cloud. However, we should still fix it to reduce dependence on the centralized storage. We can take two approaches:

  • Increase the retention period for peer-hosted snapshots so that they are still available after the epoch ends.
  • Have the syncing node detect that the epoch has ended, at which point it would start a fresh state sync to the beginning of the new epoch.
@saketh-are saketh-are added the A-chain Area: Chain, client & related label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-chain Area: Chain, client & related
Projects
None yet
Development

No branches or pull requests

1 participant