mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
miner: only commit work when mining
This commit is contained in:
parent
5873c01c3d
commit
67f1d42a90
1 changed files with 4 additions and 4 deletions
|
|
@ -861,11 +861,11 @@ func (w *worker) commitNewWork(interrupt *int32, noempty bool, timestamp int64)
|
|||
return
|
||||
}
|
||||
header.Coinbase = w.coinbase
|
||||
}
|
||||
if err := w.engine.Prepare(w.chain, header); err != nil {
|
||||
log.Error("Failed to prepare header for mining", "err", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
// If we are care about TheDAO hard-fork check whether to override the extra-data or not
|
||||
if daoBlock := w.chainConfig.DAOForkBlock; daoBlock != nil {
|
||||
// Check whether the block is among the fork extra-override range
|
||||
|
|
|
|||
Loading…
Reference in a new issue