Skip to content

Commit a6c8403

Browse files
apollo_consensus_orchestrator: escalate block info conversion failure to error in finalize_decision (#14041)
Co-authored-by: Asmaa Magdoub <asmaa@starkware.co>
1 parent de95d91 commit a6c8403

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

crates/apollo_consensus_orchestrator/src/sequencer_consensus_context.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,11 @@ impl SequencerConsensusContext {
534534
.collect::<Vec<_>>();
535535

536536
// The conversion should never fail, if we already managed to get a decision.
537-
let Ok(cende_block_info) = convert_to_sn_api_block_info(init) else {
538-
warn!("Failed to convert block info to SN API block info at height {height}: {init:?}");
539-
return;
540-
};
537+
let cende_block_info = convert_to_sn_api_block_info(init).expect(
538+
"Failed to convert block info to SN API block info (required for state sync and \
539+
preparing the cende blob). IMPORTANT: The block was committed; a revert might be \
540+
required for the node to be able to proceed.",
541+
);
541542

542543
if let Err(e) = self
543544
.update_state_sync_with_new_block(

0 commit comments

Comments
 (0)