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 fork detection for forks starting before the finalized checkpoint #232

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

pk910
Copy link
Member

@pk910 pk910 commented Feb 4, 2025

this fixes an issue in the fork detection which was recently triggered in devnet-6:
Screenshot from 2025-02-03 23-35-09

Root case of the issue has been, that the orphaned chain at slot 1502 started at slot 1185 (epoch 37), and built on top of slot 1067 (epoch 33).
When receiving the orphaned block at slot 1185, dora had already finalized and dropped all blocks from epoch 33 from cache, so the new fork was not detected (no other block in cache building on top of the same parent).

This PR fixes the fork detection, to properly detect such forks by checking for relevant blocks in the db

@pk910 pk910 merged commit eb936f5 into master Feb 7, 2025
1 check passed
@pk910 pk910 deleted the pk910/purge-parent-fork-ids-cache branch February 7, 2025 12:49
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.

2 participants