ethereum-optimism / optimism

Optimism is Ethereum, scaled.
https://optimism.io
MIT License
5.56k stars 3.21k forks source link

Interop: op-supervisor: Check database/reorg consistency at startup #11027

Open ajsutton opened 3 months ago

ajsutton commented 3 months ago

When op-supervisor starts up, it needs to check if a reorg has happened on any of its chains that invalidates the logs it has already written.

Need to think it through carefully, but most likely should find the latest search checkpoint that is still canonical in the log db and rollback to that. The log fetching pipeline should then begin fetching from that block.