Skip to content

Conversation

@willpote
Copy link
Contributor

@willpote willpote commented Jan 27, 2026

RPC sometimes returns 0 logs for the latest block being processed. When run locally at a later date, we see there actually were events for that block.

Likely this is due to either reorgs or just RPC inconsistencies- either way adding a small block delay so we trail chain head, and periodically backfilling to cover anything else missing, should handle this.

  • Adds Chain data backfill mode: Re-indexes events from RPC to fix data inconsistencies. Required modifying queries that store events to support upserts
  • Added --block-delay to trail the chain head by N blocks to avoids reorgs. Sets to 30 on Base.
  • Runs chain data backfills daily (2-day lookback) to catch RPC inconsistencies/reorgs that caused us to miss things

@github-actions github-actions bot changed the title Support backfilling events, trail chain head to avoid reorgs BM-2304: Support backfilling events, trail chain head to avoid reorgs Jan 27, 2026
@linear
Copy link

linear bot commented Jan 27, 2026

@willpote willpote merged commit 6d595d0 into main Jan 28, 2026
45 of 47 checks passed
@willpote willpote deleted the willpote/indexer-bug-fix branch January 28, 2026 17:33
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.

3 participants