aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-21 17:45:19 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-21 17:45:19 +0800
commit0bccf1c3cd9576724cbd387922997ebd6bbcf898 (patch)
tree7cb98233161af76ea488f0ee9856b8572b4b4eae
parentd16d56d39f99aab6022291a28df288736e789985 (diff)
downloaddexon-0bccf1c3cd9576724cbd387922997ebd6bbcf898.tar.gz
dexon-0bccf1c3cd9576724cbd387922997ebd6bbcf898.tar.zst
dexon-0bccf1c3cd9576724cbd387922997ebd6bbcf898.zip
Wait with mining until up to date
-rw-r--r--utils/cmd.go9
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)
fc4e6'>58eaece7e977
661d9a2ff81f








58eaece7e977
661d9a2ff81f












1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32