-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Poll missing blocks in gap handler (#113)
### TL;DR Changed block gap handling to poll missing blocks instead of marking them as failures. ### What changed? - Replaced the block failure recording mechanism in `handleGap` with a new polling approach - Created a new `BoundlessPoller` that can poll arbitrary block ranges - Refactored the `Poller` to extract common functionality into `BoundlessPoller` - Updated tests to reflect the new polling behavior ### How to test? 1. Run the indexer with a gap in block sequence 2. Verify that missing blocks are now polled and processed 3. Confirm that blocks are properly indexed instead of being marked as failures 4. Run unit tests to verify the new gap handling behavior ### Why make this change? The previous implementation would mark missing blocks as failures without attempting to retrieve them. This new approach actively tries to fetch and process missing blocks, improving indexing speed
- Loading branch information
Showing
3 changed files
with
66 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters