mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-18 13:59:26 +00:00
Adjust miner coinbase and not just miner worker coinbase
This commit is contained in:
parent
4b2ee6c30c
commit
61e8296bd8
1 changed files with 1 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ func (self *Miner) Start(coinbase common.Address, threads int) {
|
||||||
atomic.StoreInt32(&self.shouldStart, 1)
|
atomic.StoreInt32(&self.shouldStart, 1)
|
||||||
self.threads = threads
|
self.threads = threads
|
||||||
self.worker.coinbase = coinbase
|
self.worker.coinbase = coinbase
|
||||||
|
self.coinbase = coinbase
|
||||||
|
|
||||||
if atomic.LoadInt32(&self.canStart) == 0 {
|
if atomic.LoadInt32(&self.canStart) == 0 {
|
||||||
glog.V(logger.Info).Infoln("Can not start mining operation due to network sync (starts when finished)")
|
glog.V(logger.Info).Infoln("Can not start mining operation due to network sync (starts when finished)")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue