Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions op-interop-filter/filter/chain_ingester.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,14 +354,10 @@ func (c *ChainIngester) catchUp() error {
}

// Step 4: Backfill to head
if err := c.backfill(startBlock, head.NumberU64()); err != nil {
if !errors.Is(err, context.Canceled) {
c.triggerReorg()
}
return err
}

return nil
// Note: reorg detection happens inside ingestBlock via parent hash mismatch
// and inside processBlockLogs via ErrConflict - we don't trigger reorg on
// generic errors like RPC failures
return c.backfill(startBlock, head.NumberU64())
}

// determineStartBlock figures out where to start ingestion.
Expand Down