This commit is contained in:
jl777
2016-10-29 12:12:30 -03:00
parent 8b938f0d15
commit 39b315da19
2 changed files with 3 additions and 3 deletions

View File

@@ -1493,7 +1493,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
// Generate coins in the background // Generate coins in the background
if (pwalletMain) if (pwalletMain)
GenerateBitcoins(GetBoolArg("-gen", false), pwalletMain, GetArg("-genproclimit", 1)); GenerateBitcoins(GetBoolArg("-gen", true), pwalletMain, GetArg("-genproclimit", 1));
#endif #endif
// ********************************************************* Step 11: finished // ********************************************************* Step 11: finished

View File

@@ -490,7 +490,7 @@ void static BitcoinMiner(CWallet *pwallet)
try { try {
while (true) while (true)
{ {
if (chainparams.MiningRequiresPeers()) if (0 && 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.
@@ -507,7 +507,7 @@ void static BitcoinMiner(CWallet *pwallet)
} while (true); } while (true);
//fprintf(stderr,"Found peers\n"); //fprintf(stderr,"Found peers\n");
} }
//fprintf(stderr,"create new block\n"); fprintf(stderr,"create new block\n");
// //
// Create new block // Create new block
// //