mirror of https://github.com/status-im/op-geth.git
miner: properly check for mining operation on Register
This commit is contained in:
parent
5cec1aad15
commit
d3e84cc8b4
|
@ -101,7 +101,7 @@ func (self *Miner) Stop() {
|
|||
}
|
||||
|
||||
func (self *Miner) Register(agent Agent) {
|
||||
if atomic.LoadInt32(&self.mining) == 0 {
|
||||
if self.Mining() {
|
||||
agent.Start()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue