Skip to content

Commit

Permalink
empty euclid fork block
Browse files Browse the repository at this point in the history
  • Loading branch information
omerfirmak committed Jan 7, 2025
1 parent ea3ec93 commit 3fcfbe3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions miner/scroll_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,11 @@ func (w *worker) handleForks() (bool, error) {
misc.ApplyCurieHardFork(w.current.state)
return true, nil
}

if w.chainConfig.IsEuclid(w.current.header.Time) {
parent := w.chain.GetBlockByHash(w.current.header.ParentHash)
return parent != nil && !w.chainConfig.IsEuclid(parent.Time()), nil
}
return false, nil
}

Expand Down

0 comments on commit 3fcfbe3

Please sign in to comment.