From bc9dc5d6332e26d8d04b6ef1f5789b1d7a9857f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20Irmak?= Date: Mon, 30 Dec 2024 12:08:11 +0300 Subject: [PATCH] add sequencer handover at euclid fork --- miner/scroll_worker.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/miner/scroll_worker.go b/miner/scroll_worker.go index e152878d40e6..688639b919ca 100644 --- a/miner/scroll_worker.go +++ b/miner/scroll_worker.go @@ -809,7 +809,10 @@ func (w *worker) commit() (common.Hash, error) { }(time.Now()) w.updateSnapshot() - if !w.isRunning() && !w.current.reorging { + // Since clocks of mpt-sequencer and zktrie-sequencer can be slightly out of sync, + // this might result in a reorg at the Euclid fork block. But it will be resolved shortly after. + canCommitState := w.chainConfig.Scroll.UseZktrie != w.chainConfig.IsEuclid(w.current.header.Time) + if !canCommitState || (!w.isRunning() && !w.current.reorging) { return common.Hash{}, nil }