remove waiting for peers when start mining

This commit is contained in:
zelig 2014-10-20 02:18:48 +01:00
parent f58f322179
commit ffaa693b7f

View file

@ -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) {