Skip to content

Commit 026f2e2

Browse files
laanwjcodablock
authored andcommitted
Merge bitcoin#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)
1 parent e326bda commit 026f2e2

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
@@ -505,7 +505,7 @@ std::string HelpMessage(HelpMessageMode mode)
505505
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));
506506
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));
507507
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));
508-
strUsage += HelpMessageOpt("-bip9params=deployment:start:end", "Use given start/end times for specified bip9 deployment (regtest-only)");
508+
strUsage += HelpMessageOpt("-bip9params=deployment:start:end", "Use given start/end times for specified BIP9 deployment (regtest-only)");
509509
}
510510
std::string debugCategories = "addrman, alert, bench, coindb, db, http, leveldb, libevent, lock, mempool, mempoolrej, net, proxy, prune, rand, reindex, rpc, selectcoins, tor, zmq, "
511511
"dash (or specifically: gobject, instantsend, keepass, masternode, mnpayments, mnsync, privatesend, spork)"; // Don't translate these and qt below
@@ -1222,7 +1222,7 @@ bool AppInitParameterInteraction()
12221222
}
12231223

12241224
if (!mapMultiArgs["-bip9params"].empty()) {
1225-
// Allow overriding bip9 parameters for testing
1225+
// Allow overriding BIP9 parameters for testing
12261226
if (!Params().MineBlocksOnDemand()) {
12271227
return InitError("BIP9 parameters may only be overridden on regtest.");
12281228
}
@@ -1241,10 +1241,10 @@ bool AppInitParameterInteraction()
12411241
return InitError(strprintf("Invalid nTimeout (%s)", vDeploymentParams[2]));
12421242
}
12431243
bool found = false;
1244-
for (int i=0; i<(int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++i)
1244+
for (int j=0; j<(int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++j)
12451245
{
1246-
if (vDeploymentParams[0].compare(VersionBitsDeploymentInfo[i].name) == 0) {
1247-
UpdateRegtestBIP9Parameters(Consensus::DeploymentPos(i), nStartTime, nTimeout);
1246+
if (vDeploymentParams[0].compare(VersionBitsDeploymentInfo[j].name) == 0) {
1247+
UpdateRegtestBIP9Parameters(Consensus::DeploymentPos(j), nStartTime, nTimeout);
12481248
found = true;
12491249
LogPrintf("Setting BIP9 activation parameters for %s to start=%ld, timeout=%ld\n", vDeploymentParams[0], nStartTime, nTimeout);
12501250
break;

0 commit comments

Comments
 (0)