miner: set etherbase even if mining isn't possible at the moment (#21707)

This commit is contained in:
Martin Holst Swende
2020-10-14 11:59:11 +02:00
committed by GitHub
parent bdc7554918
commit 4eb01b21c8
2 changed files with 23 additions and 1 deletions

View File

@ -128,8 +128,8 @@ func (miner *Miner) update() {
events.Unsubscribe()
}
case addr := <-miner.startCh:
miner.SetEtherbase(addr)
if canStart {
miner.SetEtherbase(addr)
miner.worker.start()
}
shouldStart = true