Skip to content

Commit 0fc00be

Browse files
committed
Do not shadow previous local variable
1 parent 115265b commit 0fc00be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/init.cpp

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