Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions crates/chain-orchestrator/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ pub enum ChainOrchestratorEvent {
L2ConsolidatedBlockCommitted(L2BlockInfoWithL1Messages),
/// A new block has been sequenced by the sequencer.
BlockSequenced(ScrollBlock),
/// Block building was skipped because the built payload was empty and empty blocks are
/// disabled.
BlockBuildingSkipped,
/// A new block has been signed by the signer.
SignedBlock {
/// The signed block.
Expand Down
1 change: 1 addition & 0 deletions crates/chain-orchestrator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ impl<
.sign_block(block.clone())?;
return Ok(Some(ChainOrchestratorEvent::BlockSequenced(block)));
}
return Ok(Some(ChainOrchestratorEvent::BlockBuildingSkipped));
}
}

Expand Down
4 changes: 4 additions & 0 deletions crates/node/src/add_ons/remote_block_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ where
"Block built successfully, proceeding to next");
break;
}
Some(ChainOrchestratorEvent::BlockBuildingSkipped) => {
tracing::debug!(target: "scroll::remote_source", "Block building skipped (empty block)");
break;
}
Some(_) => {
// Ignore other events, keep waiting
}
Expand Down
Loading