diff options
author | zelig <viktor.tron@gmail.com> | 2015-04-22 08:35:16 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-04-24 19:45:11 +0800 |
commit | be843959cbc294ba8d75f66e492386fb1b7282df (patch) | |
tree | 590dac96711bce9b8630f7bbb97478005d0c2b01 /eth | |
parent | 6512b23b98de070f9b68fed4f1530f66dfea4b66 (diff) | |
download | go-tangerine-be843959cbc294ba8d75f66e492386fb1b7282df.tar.gz go-tangerine-be843959cbc294ba8d75f66e492386fb1b7282df.tar.zst go-tangerine-be843959cbc294ba8d75f66e492386fb1b7282df.zip |
backend: start miner in its go routine (no wait to generate DAG)
Diffstat (limited to 'eth')
-rw-r--r-- | eth/backend.go | 3 |
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 } |