Skip to content

Commit 784dbde

Browse files
committed
add error for not enough blob space in a single batch'
1 parent 78d57f4 commit 784dbde

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/l2/sequencer/l1_committer.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,10 @@ impl L1Committer {
362362
};
363363

364364
let Ok((bundle, latest_blob_size)) = result else {
365-
warn!(
365+
if block_to_commit_number == first_block_of_batch {
366+
return Err(CommitterError::InternalError("Not enough blob space for a single block batch".to_string()));
367+
}
368+
warn!(
366369
"Batch size limit reached. Any remaining blocks will be processed in the next batch."
367370
);
368371
// Break loop. Use the previous generated blobs_bundle.

0 commit comments

Comments
 (0)