Skip to content

Commit bef84a4

Browse files
committed
add sequencer handover at euclid fork
1 parent 5127804 commit bef84a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

miner/scroll_worker.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,10 @@ func (w *worker) commit() (common.Hash, error) {
809809
}(time.Now())
810810

811811
w.updateSnapshot()
812-
if !w.isRunning() && !w.current.reorging {
812+
// Since clocks of mpt-sequencer and zktrie-sequencer can be slightly out of sync,
813+
// this might result in a reorg at the Euclid fork block. But it will be resolved shortly after.
814+
canCommitState := w.chainConfig.Scroll.UseZktrie != w.chainConfig.IsEuclid(w.current.header.Time)
815+
if !canCommitState || (!w.isRunning() && !w.current.reorging) {
813816
return common.Hash{}, nil
814817
}
815818

0 commit comments

Comments
 (0)