Skip to content

Fix skipped single-block scan in EventScanner - #201

Merged
cyc60 merged 1 commit into
masterfrom
fix-event-scanner-single-block
Sep 1, 2026
Merged

Fix skipped single-block scan in EventScanner#201
cyc60 merged 1 commit into
masterfrom
fix-event-scanner-single-block

Conversation

@cyc60

@cyc60 cyc60 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Description

EventProcessor.get_from_block() implementations return the first unscanned block (checkpoint + 1), so from_block == to_block is a valid inclusive single-block range. The early-return guard in process_new_events used >= and skipped it, so the pending block was not scanned when the chain head advanced by exactly one block between iterations. Changed the guard to > so only a truly empty range (from_block > to_block) is skipped.

@cyc60
cyc60 merged commit f997323 into master Sep 1, 2026
2 of 3 checks passed
@cyc60
cyc60 deleted the fix-event-scanner-single-block branch September 1, 2026 09:24
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