Skip to content

Commit

Permalink
miner: remove duplicated code (ethereum#15968)
Browse files Browse the repository at this point in the history
  • Loading branch information
stompesi authored and karalabe committed Mar 16, 2018
1 parent 322006d commit fe6cf00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ out:

func (self *Miner) Start(coinbase common.Address) {
atomic.StoreInt32(&self.shouldStart, 1)
self.worker.setEtherbase(coinbase)
self.coinbase = coinbase
self.SetEtherbase(coinbase)

if atomic.LoadInt32(&self.canStart) == 0 {
log.Info("Network syncing, will start miner afterwards")
Expand Down

0 comments on commit fe6cf00

Please sign in to comment.