Skip to content

Commit 5af9a71

Browse files
committed
Merge #8975: Chainparams: Trivial: In AppInit2(), s/Params()/chainparams/
6f2f639 Chainparams: Trivial: In AppInit2(), s/Params()/chainparams/ (Jorge Timón)
2 parents 3fb3fad + 6f2f639 commit 5af9a71

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/init.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)