File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ class CCustomParams : public CChainParams {
208208 */
209209class CMainParams : public CCustomParams {
210210public:
211- CMainParams () : CCustomParams(CHAINPARAMS_OLD_MAIN )
211+ CMainParams (const std::string& chain ) : CCustomParams(chain )
212212 {
213213 consensus.nRuleChangeActivationThreshold = 1916 ; // 95% of 2016
214214 consensus.nMinerConfirmationWindow = 2016 ; // nPowTargetTimespan / nPowTargetSpacing
@@ -243,7 +243,7 @@ const CChainParams &Params() {
243243std::unique_ptr<CChainParams> CreateChainParams (const std::string& chain)
244244{
245245 if (chain == CBaseChainParams::MAIN)
246- return std::unique_ptr<CChainParams>(new CMainParams ());
246+ return std::unique_ptr<CChainParams>(new CMainParams (chain ));
247247 return std::unique_ptr<CChainParams>(new CCustomParams (chain));
248248}
249249
You can’t perform that action at this time.
0 commit comments