aboutsummaryrefslogtreecommitdiff
path: root/src/chainparams.h
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/chainparams.h
parent1712adbe0b084b6907b82db350a51ab44f8c3117 (diff)
Add MineBlocksOnDemand chain parameter
Diffstat (limited to 'src/chainparams.h')
-rw-r--r--src/chainparams.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chainparams.h b/src/chainparams.h
index a73279fe67..d76b1a2280 100644
--- a/src/chainparams.h
+++ b/src/chainparams.h
@@ -62,6 +62,9 @@ public:
/* Make miner wait to have peers to avoid wasting work */
virtual bool MiningRequiresPeers() const { return true; }
const string& DataDir() const { return strDataDir; }
+ /* Make miner stop after a block is found. In RPC, don't return
+ * until nGenProcLimit blocks are generated */
+ virtual bool MineBlocksOnDemand() const { return false; }
virtual Network NetworkID() const = 0;
const vector<CDNSSeedData>& DNSSeeds() const { return vSeeds; }
const std::vector<unsigned char> &Base58Prefix(Base58Type type) const { return base58Prefixes[type]; }