Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit c2b6301

Browse files
authored
Merge pull request #377 from chainbound/lore/fix/block-template-log
Review logs on commitment deadline
2 parents b27741f + d00f2cc commit c2b6301

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

bolt-sidecar/src/driver.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,13 +374,15 @@ impl<C: StateFetcher, ECDSA: SignerECDSA> SidecarDriver<C, ECDSA> {
374374
/// Handle a commitment deadline event, submitting constraints to the Constraints client service
375375
/// and starting to build a local payload for the given target slot.
376376
async fn handle_commitment_deadline(&mut self, slot: u64) {
377-
debug!(slot, "Commitment deadline reached, building local block");
378-
379377
let Some(template) = self.execution.get_block_template(slot) else {
380-
warn!("No block template found for slot {slot} when requested");
378+
// Nothing to do then. Block templates are created only when constraints are added,
379+
// which means we haven't issued any commitment for this slot because we are
380+
// (probably) not the proposer for this block.
381381
return;
382382
};
383383

384+
info!(slot, "Commitment deadline reached, building local block");
385+
384386
if let Err(e) = self.local_builder.build_new_local_payload(slot, template).await {
385387
error!(err = ?e, "Error while building local payload at deadline for slot {slot}");
386388
};

bolt-sidecar/src/state/execution.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,6 @@ impl<C: StateFetcher> ExecutionState<C> {
432432

433433
/// Commits the transaction to the target block. Initializes a new block template
434434
/// if one does not exist for said block number.
435-
/// TODO: remove `pub` modifier once `try_commit` is fully implemented.
436435
pub fn add_constraint(&mut self, target_slot: u64, signed_constraints: SignedConstraints) {
437436
if let Some(template) = self.block_templates.get_mut(&target_slot) {
438437
template.add_constraints(signed_constraints);

0 commit comments

Comments
 (0)