mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
miner: remove duplicated code (#15968)
This commit is contained in:
parent
322006d0f2
commit
fe6cf00f48
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user