From 0ed9528d760028acda6333269423eab775026685 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Tue, 1 Jul 2014 04:25:42 -0400 Subject: fix: miner wait untill UpToDate --- utils/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- cgit