diff options
author | Maran <maran.hidskes@gmail.com> | 2014-05-21 17:45:19 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-05-21 17:45:19 +0800 |
commit | 0bccf1c3cd9576724cbd387922997ebd6bbcf898 (patch) | |
tree | 7cb98233161af76ea488f0ee9856b8572b4b4eae /utils | |
parent | d16d56d39f99aab6022291a28df288736e789985 (diff) | |
download | go-tangerine-0bccf1c3cd9576724cbd387922997ebd6bbcf898.tar go-tangerine-0bccf1c3cd9576724cbd387922997ebd6bbcf898.tar.gz go-tangerine-0bccf1c3cd9576724cbd387922997ebd6bbcf898.tar.bz2 go-tangerine-0bccf1c3cd9576724cbd387922997ebd6bbcf898.tar.lz go-tangerine-0bccf1c3cd9576724cbd387922997ebd6bbcf898.tar.xz go-tangerine-0bccf1c3cd9576724cbd387922997ebd6bbcf898.tar.zst go-tangerine-0bccf1c3cd9576724cbd387922997ebd6bbcf898.zip |
Wait with mining until up to date
Diffstat (limited to 'utils')
-rw-r--r-- | utils/cmd.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/utils/cmd.go b/utils/cmd.go index f163575da..28597194f 100644 --- a/utils/cmd.go +++ b/utils/cmd.go @@ -34,11 +34,10 @@ func DoMining(ethereum *eth.Ethereum) { // Give it some time to connect with peers time.Sleep(3 * time.Second) - /* - for ethereum.IsUpToDate() == false { - time.Sleep(5 * time.Second) - } - */ + for ethereum.IsUpToDate() == false { + time.Sleep(5 * time.Second) + } + ethutil.Config.Log.Infoln("Miner started") miner := ethminer.NewDefaultMiner(addr, ethereum) |