ethereum-optimism / optimism

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

Interop: op-supervisor: Recover from failure after some logs in block are written #11044

Open ajsutton opened 3 days ago

ajsutton commented 3 days ago

The log DB API stores a single log at a time, but receipts are fetched for a block at a time. If an error occurs after some logs from a block are written but before they are all written, the database needs to be rewound to the previous block before we can attempt to write block logs again.