mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
Change the judgment into if :P
I move "err := self.makeCurrent(parent, header)" into if because when i make geth on Ubuntu. Sometime it will happen the following mistake T_T miner/worker.go:420:6: no new variables on left side of :=
This commit is contained in:
parent
6d1e292eef
commit
438a3b739a
1 changed files with 1 additions and 2 deletions
|
|
@ -417,8 +417,7 @@ func (self *worker) commitNewWork() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Could potentially happen if starting to mine in an odd state.
|
// Could potentially happen if starting to mine in an odd state.
|
||||||
err := self.makeCurrent(parent, header)
|
if err := self.makeCurrent(parent, header); err != nil {
|
||||||
if err != nil {
|
|
||||||
log.Error("Failed to create mining context", "err", err)
|
log.Error("Failed to create mining context", "err", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue