diff options
author | stompesi <stompesi@gmail.com> | 2018-03-16 20:13:52 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-03-16 20:13:52 +0800 |
commit | fe6cf00f480aa6347b8d55079cbe6c473482ea27 (patch) | |
tree | e75b443f63e691ee7d3866172ed2b45741d3db80 /miner/miner.go | |
parent | 322006d0f2c048aef1c3f6f69e2e1eba7d6fe1cd (diff) | |
download | dexon-fe6cf00f480aa6347b8d55079cbe6c473482ea27.tar dexon-fe6cf00f480aa6347b8d55079cbe6c473482ea27.tar.gz dexon-fe6cf00f480aa6347b8d55079cbe6c473482ea27.tar.bz2 dexon-fe6cf00f480aa6347b8d55079cbe6c473482ea27.tar.lz dexon-fe6cf00f480aa6347b8d55079cbe6c473482ea27.tar.xz dexon-fe6cf00f480aa6347b8d55079cbe6c473482ea27.tar.zst dexon-fe6cf00f480aa6347b8d55079cbe6c473482ea27.zip |
miner: remove duplicated code (#15968)
Diffstat (limited to 'miner/miner.go')
-rw-r--r-- | miner/miner.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/miner/miner.go b/miner/miner.go index fec0a40f5..d9256e978 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -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") |