|
|
|
@ -580,9 +580,8 @@ void static BitcoinMiner(CWallet *pwallet)
@@ -580,9 +580,8 @@ void static BitcoinMiner(CWallet *pwallet)
|
|
|
|
|
CheckWork(pblock, *pwallet, reservekey); |
|
|
|
|
SetThreadPriority(THREAD_PRIORITY_LOWEST); |
|
|
|
|
|
|
|
|
|
// In regression test mode, stop mining after a block is found. This
|
|
|
|
|
// allows developers to controllably generate a block on demand.
|
|
|
|
|
if (Params().NetworkID() == CChainParams::REGTEST) |
|
|
|
|
// In regression test mode, stop mining after a block is found.
|
|
|
|
|
if (Params().MineBlocksOnDemand()) |
|
|
|
|
throw boost::thread_interrupted(); |
|
|
|
|
|
|
|
|
|
break; |
|
|
|
|