aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cmd.go
diff options
context:
space:
mode:
authorEthan Buchman <ethan@coinculture.info>2014-07-01 16:25:42 +0800
committerEthan Buchman <ethan@coinculture.info>2014-07-01 16:25:42 +0800
commit0ed9528d760028acda6333269423eab775026685 (patch)
tree8b905e18a1955251002261439b70f75e51e8de29 /utils/cmd.go
parent328ee9a3ecb0e49f229eac5773c3a516cc4e17ce (diff)
downloadgo-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.go2
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)
}