From 5cec1aad152115502f8ba0d7fcc1c3e40b915d7a Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 15 May 2015 15:30:34 +0200 Subject: core, miner: fork resolving and restart miner after sync op Fork resolving fixes #940 --- miner/miner.go | 1 + 1 file changed, 1 insertion(+) (limited to 'miner') diff --git a/miner/miner.go b/miner/miner.go index 359be4032..6c220b1a6 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -47,6 +47,7 @@ func (self *Miner) update() { atomic.StoreInt32(&self.canStart, 0) if self.Mining() { self.Stop() + atomic.StoreInt32(&self.shouldStart, 1) glog.V(logger.Info).Infoln("Mining operation aborted due to sync operation") } case downloader.DoneEvent, downloader.FailedEvent: -- cgit v1.2.3