This commit is contained in:
jl777
2016-10-29 12:20:52 -03:00
parent 39b315da19
commit 1f759e717f

View File

@@ -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
// //
@@ -581,6 +581,7 @@ void static BitcoinMiner(CWallet *pwallet)
std::lock_guard<std::mutex> lock{m_cs}; std::lock_guard<std::mutex> lock{m_cs};
cancelSolver = false; cancelSolver = false;
} }
fprintf(stderr,"Block found %d\n",pblock->nHeight);
SetThreadPriority(THREAD_PRIORITY_LOWEST); SetThreadPriority(THREAD_PRIORITY_LOWEST);
// In regression test mode, stop mining after a block is found. // In regression test mode, stop mining after a block is found.
if (chainparams.MineBlocksOnDemand()) { if (chainparams.MineBlocksOnDemand()) {