aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cmd.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-27 19:31:57 +0800
committerobscuren <geffobscura@gmail.com>2014-05-27 19:31:57 +0800
commit2be98230105ef402d26e8726cec2240770a9837f (patch)
treebbd3c9eef4cba01c95ed09f13d821c7d9a37dff6 /utils/cmd.go
parent47417506c377dd0848739473fa14a51708b6a034 (diff)
parent6fe42f007c6f4816de88a2c4aad10754036d41b8 (diff)
downloaddexon-2be98230105ef402d26e8726cec2240770a9837f.tar.gz
dexon-2be98230105ef402d26e8726cec2240770a9837f.tar.zst
dexon-2be98230105ef402d26e8726cec2240770a9837f.zip
Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop
Conflicts: ethereal/assets/qml/wallet.qml
Diffstat (limited to 'utils/cmd.go')
-rw-r--r--utils/cmd.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/cmd.go b/utils/cmd.go
index 98005d7de..f8b7b5fe2 100644
--- a/utils/cmd.go
+++ b/utils/cmd.go
@@ -40,6 +40,13 @@ 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)
+ }
+
+ ethutil.Config.Log.Infoln("Miner started")
+
+ miner := ethminer.NewDefaultMiner(addr, ethereum)
miner.Start()
}()
}