Skip to content

Conversation

@Galoretka
Copy link

Fix inconsistent state where a batch was sealed and stored but witness generation failed after #5152; in crates/l2/sequencer/l1_committer.rs wrap generate_and_store_batch_prover_input with error handling and call rollup_store.revert_to_batch(batch.number - 1) on failure to rollback the just-sealed batch, keeping DB and internal checkpoint state consistent; on success behavior is unchanged; consider future improvements like sealing only after witness generation or using a single transactional boundary for batch + witness persistence.

#5154

@Galoretka Galoretka requested a review from a team as a code owner November 1, 2025 14:18
@mpaulucci mpaulucci added the L2 Rollup client label Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L2 Rollup client

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants