aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-04-22 08:35:16 +0800
committerzelig <viktor.tron@gmail.com>2015-04-24 19:45:11 +0800
commitbe843959cbc294ba8d75f66e492386fb1b7282df (patch)
tree590dac96711bce9b8630f7bbb97478005d0c2b01
parent6512b23b98de070f9b68fed4f1530f66dfea4b66 (diff)
downloadgo-tangerine-be843959cbc294ba8d75f66e492386fb1b7282df.tar
go-tangerine-be843959cbc294ba8d75f66e492386fb1b7282df.tar.gz
go-tangerine-be843959cbc294ba8d75f66e492386fb1b7282df.tar.bz2
go-tangerine-be843959cbc294ba8d75f66e492386fb1b7282df.tar.lz
go-tangerine-be843959cbc294ba8d75f66e492386fb1b7282df.tar.xz
go-tangerine-be843959cbc294ba8d75f66e492386fb1b7282df.tar.zst
go-tangerine-be843959cbc294ba8d75f66e492386fb1b7282df.zip
backend: start miner in its go routine (no wait to generate DAG)
-rw-r--r--eth/backend.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 356e7fd1a..7c1d7d617 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -322,10 +322,9 @@ func (s *Ethereum) StartMining() error {
err = fmt.Errorf("Cannot start mining without etherbase address: %v", err)
glog.V(logger.Error).Infoln(err)
return err
-
}
- s.miner.Start(eb)
+ go s.miner.Start(eb)
return nil
}