diff options
author | Ethan Buchman <ethan@coinculture.info> | 2014-07-01 16:25:42 +0800 |
---|---|---|
committer | Ethan Buchman <ethan@coinculture.info> | 2014-07-01 16:25:42 +0800 |
commit | 0ed9528d760028acda6333269423eab775026685 (patch) | |
tree | 8b905e18a1955251002261439b70f75e51e8de29 /utils/cmd.go | |
parent | 328ee9a3ecb0e49f229eac5773c3a516cc4e17ce (diff) | |
download | go-tangerine-0ed9528d760028acda6333269423eab775026685.tar.gz go-tangerine-0ed9528d760028acda6333269423eab775026685.tar.zst go-tangerine-0ed9528d760028acda6333269423eab775026685.zip |
fix: miner wait untill UpToDate
Diffstat (limited to 'utils/cmd.go')
-rw-r--r-- | utils/cmd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/cmd.go b/utils/cmd.go index 1d97c9639..db5db0d2c 100644 --- a/utils/cmd.go +++ b/utils/cmd.go @@ -204,7 +204,7 @@ func StartMining(ethereum *eth.Ethereum) bool { miner = ethminer.NewDefaultMiner(addr, ethereum) // Give it some time to connect with peers time.Sleep(3 * time.Second) - for !ethereum.IsUpToDate() == false { + for !ethereum.IsUpToDate() { time.Sleep(5 * time.Second) } |