Skip to content

Commit 403c79c

Browse files
committed
fix fork application order
1 parent c5b7e2a commit 403c79c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

miner/scroll_worker.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -633,12 +633,6 @@ func (w *worker) handleForks(parent *types.Block) (bool, error) {
633633
return true, nil
634634
}
635635

636-
// Stop/start miner at Euclid fork boundary on zktrie/mpt nodes
637-
if w.chainConfig.IsEuclid(w.current.header.Time) {
638-
parent := w.chain.GetBlockByHash(w.current.header.ParentHash)
639-
return parent != nil && !w.chainConfig.IsEuclid(parent.Time()), nil
640-
}
641-
642636
// Apply Feynman hard fork
643637
if w.chainConfig.IsFeynmanTransitionBlock(w.current.header.Time, parent.Time()) {
644638
misc.ApplyFeynmanHardFork(w.current.state)
@@ -651,6 +645,12 @@ func (w *worker) handleForks(parent *types.Block) (bool, error) {
651645
core.ProcessParentBlockHash(w.current.header.ParentHash, vmenv, w.current.state)
652646
}
653647

648+
// Stop/start miner at Euclid fork boundary on zktrie/mpt nodes
649+
if w.chainConfig.IsEuclid(w.current.header.Time) {
650+
parent := w.chain.GetBlockByHash(w.current.header.ParentHash)
651+
return parent != nil && !w.chainConfig.IsEuclid(parent.Time()), nil
652+
}
653+
654654
return false, nil
655655
}
656656

0 commit comments

Comments
 (0)