-
Notifications
You must be signed in to change notification settings - Fork 37.7k
[Trivial] BIP9 parameters on regtest cleanup #8446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@btcdrak: See #8105. There is auto i
a few lines above: https://github.com/bitcoin/bitcoin/blob/master/src/init.cpp#L985
The warning issued is:
init.cpp:999:22: warning: declaration shadows a local variable [-Wshadow]
for (int i=0; i<(int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++i)
^
init.cpp:985:19: note: previous declaration is here
for (auto i : deployments) {
^
utACK 0fc00be |
utACK 0fc00be |
utACK 0fc00be |
utACK 0fc00be |
Minor cleanup after 56c87e9