optimism
optimism copied to clipboard
op-supervisor: Rewind database if an error occurs while storing logs for a block
Description
Rewind database if an error occurs while storing logs for a block.
Ensures the database is rewound to the point where it can retry storing the logs for the block rather than having some logs already exist.
Note that the rewind is a no-op if no logs were written for the block anyway so is safe to call on any error when processing the block.
Tests
Updated unit tests.
Metadata
- Fixes #11044