aboutsummaryrefslogtreecommitdiff
path: root/src/chainparams.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-09-29 13:13:47 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-10-02 13:54:26 +0200
commitfbd36d8fb5245a5511b2db7a35270fb1250e21d5 (patch)
treedc789112db6935d255a88fd457bd2cb77e65f488 /src/chainparams.cpp
parentf0fd00cb77d91ec9ac729bc4cf35ff7d9f676d8f (diff)
Avoid introducing a virtual into CChainParams
Treat fSkipProofOfWorkCheck the same as other parameters.
Diffstat (limited to 'src/chainparams.cpp')
-rw-r--r--src/chainparams.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/chainparams.cpp b/src/chainparams.cpp
index 8a00da0bb5..31c67715c8 100644
--- a/src/chainparams.cpp
+++ b/src/chainparams.cpp
@@ -115,6 +115,7 @@ public:
fAllowMinDifficultyBlocks = false;
fRequireStandard = true;
fMineBlocksOnDemand = false;
+ fSkipProofOfWorkCheck = false;
}
};
static CMainParams mainParams;
@@ -231,11 +232,7 @@ public:
fDefaultCheckMemPool = true;
fAllowMinDifficultyBlocks = false;
fMineBlocksOnDemand = true;
- fSkipProofOfWorkCheck = false;
}
- virtual bool SkipProofOfWorkCheck() const { return fSkipProofOfWorkCheck; }
-protected:
- bool fSkipProofOfWorkCheck;
public:
// Published setters to allow changing values in unit test cases
virtual void setSubsidyHalvingInterval(int anSubsidyHalvingInterval) { nSubsidyHalvingInterval=anSubsidyHalvingInterval; }