Skip to content

Commit 7bc44a0

Browse files
authored
set the l2 head block number when we set the head via the handle (#361)
1 parent 5125eee commit 7bc44a0

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

crates/chain-orchestrator/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ impl<
347347
self.engine.update_fcs(Some(head), None, None).await?;
348348
let tx = self.database.tx_mut().await?;
349349
tx.purge_l1_message_to_l2_block_mappings(Some(head.number + 1)).await?;
350+
tx.set_l2_head_block_number(head.number).await?;
350351
tx.commit().await?;
351352
self.notify(ChainOrchestratorEvent::FcsHeadUpdated(head));
352353
let _ = sender.send(());

0 commit comments

Comments
 (0)