diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-27 22:11:01 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-27 22:11:01 +0800 |
commit | 0dda955f90b674090066d3621b40eabba14f8559 (patch) | |
tree | b7f8bcd5f65531986c6412e0a71df0a7d6a50c04 /utils | |
parent | 0d89c1d212e121b4904bf24b5332de9d4344334b (diff) | |
parent | 34b861c19c02947503a175f7b2be6c880a007d11 (diff) | |
download | dexon-0dda955f90b674090066d3621b40eabba14f8559.tar dexon-0dda955f90b674090066d3621b40eabba14f8559.tar.gz dexon-0dda955f90b674090066d3621b40eabba14f8559.tar.bz2 dexon-0dda955f90b674090066d3621b40eabba14f8559.tar.lz dexon-0dda955f90b674090066d3621b40eabba14f8559.tar.xz dexon-0dda955f90b674090066d3621b40eabba14f8559.tar.zst dexon-0dda955f90b674090066d3621b40eabba14f8559.zip |
Merge branch 'release/poc5-rc10'
Diffstat (limited to 'utils')
-rw-r--r-- | utils/cmd.go | 7 |
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() }() } |