mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Avoid introducing a virtual into CChainParams
Treat fSkipProofOfWorkCheck the same as other parameters.
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user