Skip to content

add check for reorgs to blocks that aren't higher than the current best tip#1178

Open
AloeareV wants to merge 2 commits into
devfrom
add_reorg_check_to_sync_loop
Open

add check for reorgs to blocks that aren't higher than the current best tip#1178
AloeareV wants to merge 2 commits into
devfrom
add_reorg_check_to_sync_loop

Conversation

@AloeareV

@AloeareV AloeareV commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Note: This is a quick fix, I've added a post-normal-sync check, where we handle reorgs if the chaintip hashes don't match. This couple perhaps fit more elegantly in the sync loop itself.

@AloeareV AloeareV force-pushed the add_reorg_check_to_sync_loop branch from 4f60f22 to 9cda199 Compare June 5, 2026 19:42
working_snapshot: &mut NonfinalizedBlockCacheSnapshot,
// Callers should provide None. Used for self-recursion case only
height_to_recurse_to: Option<Height>,
) -> Result<(), SyncError> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also have the recursion limit as in #1179 ?

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