Skip to content

Commit 0eec440

Browse files
committed
fix: don't submit empty blocks
1 parent 79ca0da commit 0eec440

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tasks/submit.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,12 @@ impl SubmitTask {
517517
};
518518
debug!(block_number = result.block.block_number(), "submit channel received block");
519519

520+
// Don't submit empty blocks
521+
if result.block.is_empty() {
522+
debug!("received empty block - skipping");
523+
continue;
524+
}
525+
520526
if let Err(e) = self.retrying_handle_inbound(&result.block, &result.env, 3).await {
521527
error!(error = %e, "error handling inbound block");
522528
continue;

0 commit comments

Comments
 (0)