This commit is contained in:
jl777
2016-11-08 19:03:45 -03:00
parent cf5053b084
commit 0617dd84de

View File

@@ -541,7 +541,7 @@ void static BitcoinMiner(CWallet *pwallet)
//fprintf(stderr,"try %s Mining with %s\n",ASSETCHAINS_SYMBOL,solver.c_str()); //fprintf(stderr,"try %s Mining with %s\n",ASSETCHAINS_SYMBOL,solver.c_str());
while (true) while (true)
{ {
if (chainparams.MiningRequiresPeers()) if (chainActive.Tip()->nHeight >= 100 && chainparams.MiningRequiresPeers())
{ {
// Busy-wait for the network to come online so we don't waste time mining // Busy-wait for the network to come online so we don't waste time mining
// on an obsolete chain. In regtest mode we expect to fly solo. // on an obsolete chain. In regtest mode we expect to fly solo.