aboutsummaryrefslogtreecommitdiff
path: root/src/miner.cpp
diff options
context:
space:
mode:
authorjtimon <jtimon@monetize.io>2014-03-09 13:36:55 -0700
committerjtimon <jtimon@monetize.io>2014-06-04 13:29:35 +0200
commitbfa9a1a638d69ec3edc2473eef5f2eee43af5a9d (patch)
tree49126ae86d7e57ba660ee8c769c603b7f624d71a /src/miner.cpp
parent1712adbe0b084b6907b82db350a51ab44f8c3117 (diff)
Add MineBlocksOnDemand chain parameter
Diffstat (limited to 'src/miner.cpp')
-rw-r--r--src/miner.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/miner.cpp b/src/miner.cpp
index 3d46a0d83e..e980fdc42d 100644
--- a/src/miner.cpp
+++ b/src/miner.cpp
@@ -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;