Skip to content

Conversation

PJColombo
Copy link
Member

New Catchup Task

  • Introduces a dedicated task that runs a synchronizer in a separate thread to catch up missing blocks (from the last synced block to the head).
  • Ensures catchup can run concurrently while still reindexing incoming head events.

Task Refactor

  • Extracts task logic into a dedicated IndexingTask entity responsible for spawning threads and managing synchronizers.
  • Improves maintainability by centralizing thread/task handling.

Reorg fix

  • It updates the reorg handling logic by throwing an error only when blocks were actually rewound but no common ancestor was found

@PJColombo PJColombo changed the title fix: reorg handling skipping + add catchup task feat(indexing): add catchup task, refactor task handling, and improve reorg error logic Aug 26, 2025
@PJColombo PJColombo merged commit 8ba179f into master Aug 29, 2025
1 check passed
@PJColombo PJColombo deleted the refactor/add-catchup-task branch August 29, 2025 14:15
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