Skip to content

Commit 762f2b5

Browse files
committed
update batch revent logic
1 parent eac74f5 commit 762f2b5

File tree

1 file changed

+4
-1
lines changed
  • crates/chain-orchestrator/src

1 file changed

+4
-1
lines changed

crates/chain-orchestrator/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,10 @@ impl<
841841
.await?;
842842

843843
// Update the forkchoice state to the new safe block.
844-
self.engine.update_fcs(None, Some(safe_block_info), None).await?;
844+
if self.sync_state.is_synced() {
845+
tracing::info!(target: "scroll::chain_orchestrator", ?safe_block_info, "Updating safe head to block after batch revert");
846+
self.engine.update_fcs(None, Some(safe_block_info), None).await?;
847+
}
845848

846849
Ok(Some(ChainOrchestratorEvent::BatchReverted { batch_info, safe_head: safe_block_info }))
847850
}

0 commit comments

Comments
 (0)