aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.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/rpcmining.cpp
parent1712adbe0b084b6907b82db350a51ab44f8c3117 (diff)
Add MineBlocksOnDemand chain parameter
Diffstat (limited to 'src/rpcmining.cpp')
-rw-r--r--src/rpcmining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp
index 23876c603d..70adae1467 100644
--- a/src/rpcmining.cpp
+++ b/src/rpcmining.cpp
@@ -174,7 +174,7 @@ Value setgenerate(const Array& params, bool fHelp)
}
// -regtest mode: don't return until nGenProcLimit blocks are generated
- if (fGenerate && Params().NetworkID() == CChainParams::REGTEST)
+ if (fGenerate && Params().MineBlocksOnDemand())
{
int nHeightStart = 0;
int nHeightEnd = 0;