Skip to content

Commit

Permalink
add sequencer handover at euclid fork
Browse files Browse the repository at this point in the history
  • Loading branch information
omerfirmak committed Dec 30, 2024
1 parent 688d6e3 commit bc9dc5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion miner/scroll_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit bc9dc5d

Please sign in to comment.