@@ -960,8 +960,8 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
960960 ::minRelayTxFee = CFeeRate (n);
961961 }
962962
963- fRequireStandard = !GetBoolArg (" -acceptnonstdtxn" , !Params () .RequireStandard ());
964- if (Params () .RequireStandard () && !fRequireStandard )
963+ fRequireStandard = !GetBoolArg (" -acceptnonstdtxn" , !chainparams .RequireStandard ());
964+ if (chainparams .RequireStandard () && !fRequireStandard )
965965 return InitError (strprintf (" acceptnonstdtxn is not currently supported for %s chain" , chainparams.NetworkIDString ()));
966966 nBytesPerSigOp = GetArg (" -bytespersigop" , nBytesPerSigOp);
967967
@@ -996,7 +996,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
996996
997997 if (!mapMultiArgs[" -bip9params" ].empty ()) {
998998 // Allow overriding BIP9 parameters for testing
999- if (!Params () .MineBlocksOnDemand ()) {
999+ if (!chainparams .MineBlocksOnDemand ()) {
10001000 return InitError (" BIP9 parameters may only be overridden on regtest." );
10011001 }
10021002 const vector<string>& deployments = mapMultiArgs[" -bip9params" ];
@@ -1447,7 +1447,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
14471447 }
14481448 }
14491449
1450- if (Params () .GetConsensus ().vDeployments [Consensus::DEPLOYMENT_SEGWIT].nTimeout != 0 ) {
1450+ if (chainparams .GetConsensus ().vDeployments [Consensus::DEPLOYMENT_SEGWIT].nTimeout != 0 ) {
14511451 // Only advertize witness capabilities if they have a reasonable start time.
14521452 // This allows us to have the code merged without a defined softfork, by setting its
14531453 // end time to 0.
0 commit comments