mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
Do not shadow previous local variable
This commit is contained in:
parent
115265bb10
commit
0fc00bea5d
@ -996,10 +996,10 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|||||||
return InitError(strprintf("Invalid nTimeout (%s)", vDeploymentParams[2]));
|
return InitError(strprintf("Invalid nTimeout (%s)", vDeploymentParams[2]));
|
||||||
}
|
}
|
||||||
bool found = false;
|
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) {
|
if (vDeploymentParams[0].compare(VersionBitsDeploymentInfo[j].name) == 0) {
|
||||||
UpdateRegtestBIP9Parameters(Consensus::DeploymentPos(i), nStartTime, nTimeout);
|
UpdateRegtestBIP9Parameters(Consensus::DeploymentPos(j), nStartTime, nTimeout);
|
||||||
found = true;
|
found = true;
|
||||||
LogPrintf("Setting BIP9 activation parameters for %s to start=%ld, timeout=%ld\n", vDeploymentParams[0], nStartTime, nTimeout);
|
LogPrintf("Setting BIP9 activation parameters for %s to start=%ld, timeout=%ld\n", vDeploymentParams[0], nStartTime, nTimeout);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user