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(blockchain-tree): query latest canonical hashes from both db and snapshots #6468

Merged

Conversation

shekhirin
Copy link
Collaborator

The previous implementation had an assumption that the database is always ahead of snapshots. It is not correct because we write to snapshots in pipeline sync, and the database may have a lower latest block number because we didn't prune from it yet.

@shekhirin shekhirin added C-bug An unexpected or incorrect behavior A-blockchain-tree Related to sidechains, reorgs and pending blocks A-static-files Related to static files labels Feb 7, 2024
@shekhirin shekhirin marked this pull request as ready for review February 7, 2024 18:04
@shekhirin shekhirin merged commit 07e9c6e into feat/static-files Feb 8, 2024
22 of 24 checks passed
@shekhirin shekhirin deleted the alexey/latest-canonical-hashes-snapshot branch February 8, 2024 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-blockchain-tree Related to sidechains, reorgs and pending blocks A-static-files Related to static files C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants