optimism
optimism copied to clipboard
Interop: op-supervisor: Handle reorgs
Insert a stage into the fetching pipeline to identify when a reorg has occurred. Output an event down the pipeline that will rollback stages as needed (e.g. the log fetcher will need to rewind its record of the last block it fetched to the common ancestor of the fork). Rewind the log database for the chain back to the common ancestor.