Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -902,8 +902,12 @@ func (w *worker) commitNewWork(interrupt *int32, noempty bool, timestamp int64)
}
// Create the current work task and check any fork transitions needed
env := w.current
if w.chainConfig.IsEnabled(w.chainConfig.GetEthashEIP779Transition, header.Number) {
misc.ApplyDAOHardFork(env.state)
// Mutate the block and state according to any hard-fork specs
isDAOSupport := w.chainConfig.IsEnabled(w.chainConfig.GetEthashEIP779Transition, header.Number)
if isDAOSupport {
if daoNumber := w.chainConfig.GetEthashEIP779Transition(); daoNumber != nil && *daoNumber == header.Number.Uint64() {
misc.ApplyDAOHardFork(env.state)
}
}
// Accumulate the uncles for the current block
uncles := make([]*types.Header, 0, 2)
Expand Down