optimism icon indicating copy to clipboard operation
optimism copied to clipboard

op-supervisor: Rewind database if an error occurs while storing logs for a block

Open ajsutton opened this issue 1 year ago • 0 comments

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

ajsutton avatar Jul 10 '24 00:07 ajsutton