This commit is contained in:
jl777
2016-11-29 20:20:37 -03:00
parent 6bc551dd34
commit 1e6ae72bc1

View File

@@ -558,7 +558,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 (0 && chainparams.MiningRequiresPeers())
{ {
//if ( ASSETCHAINS_SEED != 0 && chainActive.Tip()->nHeight < 100 ) //if ( ASSETCHAINS_SEED != 0 && chainActive.Tip()->nHeight < 100 )
// break; // break;
@@ -746,7 +746,7 @@ void static BitcoinMiner(CWallet *pwallet)
// Regtest mode doesn't require peers // Regtest mode doesn't require peers
if (vNodes.empty() && chainparams.MiningRequiresPeers()) if (vNodes.empty() && chainparams.MiningRequiresPeers())
{ {
if ( ASSETCHAINS_SYMBOL[0] == 0 || Mining_height >= 100 ) if ( ASSETCHAINS_SYMBOL[0] == 0 || Mining_height > 100 )
{ {
//fprintf(stderr,"no nodes, break\n"); //fprintf(stderr,"no nodes, break\n");
break; break;