From ffaa693b7f0298605837e841d941a6455e3c1c20 Mon Sep 17 00:00:00 2001 From: zelig Date: Mon, 20 Oct 2014 02:18:48 +0100 Subject: [PATCH] remove waiting for peers when start mining --- utils/cmd.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/utils/cmd.go b/utils/cmd.go index 1b3f9694c8..b71f3f358b 100644 --- a/utils/cmd.go +++ b/utils/cmd.go @@ -10,7 +10,6 @@ import ( "path/filepath" "regexp" "runtime" - "time" "bitbucket.org/kardianos/osext" "github.com/ethereum/eth-go" @@ -267,11 +266,6 @@ func StartMining(ethereum *eth.Ethereum) bool { if miner == nil { miner = ethminer.NewDefaultMiner(addr, ethereum) } - // Give it some time to connect with peers - time.Sleep(3 * time.Second) - for !ethereum.IsUpToDate() { - time.Sleep(5 * time.Second) - } miner.Start() }() RegisterInterrupt(func(os.Signal) {