diff options
author | Pavel Janík <Pavel@Janik.cz> | 2016-08-02 10:26:54 +0200 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2016-08-02 10:26:54 +0200 |
commit | 0fc00bea5d24f4a6715f7069adb7b7396c981308 (patch) | |
tree | 48a0c5c588b328d649ee57abe3a667178c8caffe /src/init.cpp | |
parent | 115265bb1060533bc1b73a10c5ca17ad64fbaf45 (diff) |
Do not shadow previous local variable
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/init.cpp b/src/init.cpp index a3560afef8..cb3dfe3aa4 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -996,10 +996,10 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) return InitError(strprintf("Invalid nTimeout (%s)", vDeploymentParams[2])); } bool found = false; - for (int i=0; i<(int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++i) + for (int j=0; j<(int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++j) { - if (vDeploymentParams[0].compare(VersionBitsDeploymentInfo[i].name) == 0) { - UpdateRegtestBIP9Parameters(Consensus::DeploymentPos(i), nStartTime, nTimeout); + if (vDeploymentParams[0].compare(VersionBitsDeploymentInfo[j].name) == 0) { + UpdateRegtestBIP9Parameters(Consensus::DeploymentPos(j), nStartTime, nTimeout); found = true; LogPrintf("Setting BIP9 activation parameters for %s to start=%ld, timeout=%ld\n", vDeploymentParams[0], nStartTime, nTimeout); break; |