diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-09-29 13:13:47 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-09-29 13:13:47 +0200 |
commit | 470590277782cce2fe73275c74523aef59a51eab (patch) | |
tree | 36da096d823ffde7aab323ff269b3dbe74fff080 /src/chainparams.cpp | |
parent | 5e2e7fcb99738d9254d4030d53e4f711b2fc5ee0 (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.cpp | 5 |
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; } |