From 0617dd84de9122fa9747486ada11a85fbfcd5207 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 8 Nov 2016 19:03:45 -0300 Subject: [PATCH] test --- src/miner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/miner.cpp b/src/miner.cpp index 3937a5e8a..9798fb36f 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -541,7 +541,7 @@ void static BitcoinMiner(CWallet *pwallet) //fprintf(stderr,"try %s Mining with %s\n",ASSETCHAINS_SYMBOL,solver.c_str()); 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 // on an obsolete chain. In regtest mode we expect to fly solo.