miner: remove duplicated code (#15968)

pull/16308/merge
stompesi 7 years ago committed by Péter Szilágyi
parent 322006d0f2
commit fe6cf00f48
  1. 3
      miner/miner.go

@ -105,8 +105,7 @@ out:
func (self *Miner) Start(coinbase common.Address) { func (self *Miner) Start(coinbase common.Address) {
atomic.StoreInt32(&self.shouldStart, 1) atomic.StoreInt32(&self.shouldStart, 1)
self.worker.setEtherbase(coinbase) self.SetEtherbase(coinbase)
self.coinbase = coinbase
if atomic.LoadInt32(&self.canStart) == 0 { if atomic.LoadInt32(&self.canStart) == 0 {
log.Info("Network syncing, will start miner afterwards") log.Info("Network syncing, will start miner afterwards")

Loading…
Cancel
Save