Skip to content

Commit ced2d5e

Browse files
committed
Merge #8446: [Trivial] BIP9 parameters on regtest cleanup
0fc00be Do not shadow previous local variable (Pavel Janík) 115265b Trivial: bip -> BIP in help text and comment (Pavel Janík)
2 parents fc93486 + 0fc00be commit ced2d5e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/init.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ std::string HelpMessage(HelpMessageMode mode)
410410
strUsage += HelpMessageOpt("-limitancestorsize=<n>", strprintf("Do not accept transactions whose size with all in-mempool ancestors exceeds <n> kilobytes (default: %u)", DEFAULT_ANCESTOR_SIZE_LIMIT));
411411
strUsage += HelpMessageOpt("-limitdescendantcount=<n>", strprintf("Do not accept transactions if any ancestor would have <n> or more in-mempool descendants (default: %u)", DEFAULT_DESCENDANT_LIMIT));
412412
strUsage += HelpMessageOpt("-limitdescendantsize=<n>", strprintf("Do not accept transactions if any ancestor would have more than <n> kilobytes of in-mempool descendants (default: %u).", DEFAULT_DESCENDANT_SIZE_LIMIT));
413-
strUsage += HelpMessageOpt("-bip9params=deployment:start:end", "Use given start/end times for specified bip9 deployment (regtest-only)");
413+
strUsage += HelpMessageOpt("-bip9params=deployment:start:end", "Use given start/end times for specified BIP9 deployment (regtest-only)");
414414
}
415415
string debugCategories = "addrman, alert, bench, coindb, db, http, libevent, lock, mempool, mempoolrej, net, proxy, prune, rand, reindex, rpc, selectcoins, tor, zmq"; // Don't translate these and qt below
416416
if (mode == HMM_BITCOIN_QT)
@@ -977,7 +977,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
977977
}
978978

979979
if (!mapMultiArgs["-bip9params"].empty()) {
980-
// Allow overriding bip9 parameters for testing
980+
// Allow overriding BIP9 parameters for testing
981981
if (!Params().MineBlocksOnDemand()) {
982982
return InitError("BIP9 parameters may only be overridden on regtest.");
983983
}
@@ -996,10 +996,10 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
996996
return InitError(strprintf("Invalid nTimeout (%s)", vDeploymentParams[2]));
997997
}
998998
bool found = false;
999-
for (int i=0; i<(int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++i)
999+
for (int j=0; j<(int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++j)
10001000
{
1001-
if (vDeploymentParams[0].compare(VersionBitsDeploymentInfo[i].name) == 0) {
1002-
UpdateRegtestBIP9Parameters(Consensus::DeploymentPos(i), nStartTime, nTimeout);
1001+
if (vDeploymentParams[0].compare(VersionBitsDeploymentInfo[j].name) == 0) {
1002+
UpdateRegtestBIP9Parameters(Consensus::DeploymentPos(j), nStartTime, nTimeout);
10031003
found = true;
10041004
LogPrintf("Setting BIP9 activation parameters for %s to start=%ld, timeout=%ld\n", vDeploymentParams[0], nStartTime, nTimeout);
10051005
break;

0 commit comments

Comments
 (0)