diff options
author | jtimon <jtimon@monetize.io> | 2014-03-07 22:47:56 -0800 |
---|---|---|
committer | jtimon <jtimon@monetize.io> | 2014-06-04 13:29:35 +0200 |
commit | 2595b9ac23735649f4601c27924821641611696e (patch) | |
tree | fb5efd3cf3d611feb5c43c4736472bc506bdd92d /src/chainparams.h | |
parent | bfa9a1a638d69ec3edc2473eef5f2eee43af5a9d (diff) |
Add DefaultMinerThreads chain parameter
Diffstat (limited to 'src/chainparams.h')
-rw-r--r-- | src/chainparams.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chainparams.h b/src/chainparams.h index d76b1a2280..f331d956fe 100644 --- a/src/chainparams.h +++ b/src/chainparams.h @@ -57,6 +57,8 @@ public: int GetDefaultPort() const { return nDefaultPort; } const uint256& ProofOfWorkLimit() const { return bnProofOfWorkLimit; } int SubsidyHalvingInterval() const { return nSubsidyHalvingInterval; } + /* Used if GenerateBitcoins is called with a negative number of threads */ + int DefaultMinerThreads() const { return nMinerThreads; } virtual const CBlock& GenesisBlock() const = 0; virtual bool RequireRPCPassword() const { return true; } /* Make miner wait to have peers to avoid wasting work */ @@ -82,6 +84,7 @@ protected: uint256 bnProofOfWorkLimit; int nSubsidyHalvingInterval; string strDataDir; + int nMinerThreads; vector<CDNSSeedData> vSeeds; std::vector<unsigned char> base58Prefixes[MAX_BASE58_TYPES]; }; |