mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 21:17:16 +00:00
miner: on downloader.Done/Fail stop immediately. Ignore pending evs
This commit is contained in:
parent
4600ecb5c7
commit
3ea9868b65
@ -65,6 +65,8 @@ func (self *Miner) update() {
|
|||||||
}
|
}
|
||||||
// unsubscribe. we're only interested in this event once
|
// unsubscribe. we're only interested in this event once
|
||||||
events.Unsubscribe()
|
events.Unsubscribe()
|
||||||
|
// stop immediately and ignore all further pending events
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user