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

fix(state-sync): set the sync hash only when it's final #12720

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

marcelo-gonzalez
Copy link
Contributor

There's currently a bug that can happen if the sync hash that we set doesn't end up on the canonical chain. Here we add a couple more test cases for that, and fix it by considering only finalized blocks when we set the state sync hash, and changing the snapshot logic to check whether the current head is the prev block of what will be the sync hash block. This means the sync hash is found a little later than it was before, but on a chain with long epoch lengths, it shouldn't be a problem.

to find the sync hash, and with an epoch length of 6
temporary_account_during_resharding() fails
in check_txs() because account0 has not synced the parent shard by the resharding block yet
@marcelo-gonzalez marcelo-gonzalez requested a review from a team as a code owner January 11, 2025 04:25
@marcelo-gonzalez
Copy link
Contributor Author

There are a couple more test failures that happen because clients are dropping transactions because epoch lengths are too short and they're not caught up by the time the transaction comes in, and so they drop it. Will fix

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.

1 participant