Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion crates/l2/sequencer/l1_committer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,10 @@ impl L1Committer {
batch.number,
);

self.generate_and_store_batch_prover_input(&batch).await?;
if let Err(e) = self.generate_and_store_batch_prover_input(&batch).await {
let _ = self.rollup_store.revert_to_batch(batch.number - 1).await;
return Err(e);
}

// We need to update the current checkpoint after generating the witness
// with it, and before sending the commitment.
Expand Down
Loading