[Trivial] BIP9 parameters on regtest cleanup #8446

pull paveljanik wants to merge 2 commits into bitcoin:master from paveljanik:20160802_shadow_bip9params changing 1 files +5 −5
  1. paveljanik commented at 8:30 AM on August 2, 2016: contributor
  2. Trivial: bip -> BIP in help text and comment 115265bb10
  3. Do not shadow previous local variable 0fc00bea5d
  4. in src/init.cpp:None in 0fc00bea5d
     995 | @@ -996,10 +996,10 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
     996 |                  return InitError(strprintf("Invalid nTimeout (%s)", vDeploymentParams[2]));
     997 |              }
     998 |              bool found = false;
     999 | -            for (int i=0; i<(int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++i)
    1000 | +            for (int j=0; j<(int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++j)
    


    btcdrak commented at 9:41 AM on August 2, 2016:

    Why?


    paveljanik commented at 9:43 AM on August 2, 2016:

    @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) {
                      ^
    
  5. paveljanik renamed this:
    BIP9 parameters on regtest cleanup
    Trivial: BIP9 parameters on regtest cleanup
    on Aug 2, 2016
  6. paveljanik renamed this:
    Trivial: BIP9 parameters on regtest cleanup
    [Trivial] BIP9 parameters on regtest cleanup
    on Aug 2, 2016
  7. NicolasDorier commented at 4:00 PM on August 2, 2016: contributor

    utACK 0fc00bea5d24f4a6715f7069adb7b7396c981308

  8. MarcoFalke added the label Docs and Output on Aug 2, 2016
  9. MarcoFalke commented at 4:10 PM on August 2, 2016: member

    utACK 0fc00be

  10. sipa commented at 11:05 PM on August 2, 2016: member

    utACK 0fc00bea5d24f4a6715f7069adb7b7396c981308

  11. laanwj commented at 9:05 AM on August 3, 2016: member

    utACK 0fc00be

  12. laanwj merged this on Aug 3, 2016
  13. laanwj closed this on Aug 3, 2016

  14. laanwj referenced this in commit ced2d5ef7c on Aug 3, 2016
  15. codablock referenced this in commit 026f2e2a8c on Feb 8, 2018
  16. andvgal referenced this in commit 6e81e4f0df on Jan 6, 2019
  17. CryptoCentric referenced this in commit ee29ce5cb0 on Feb 28, 2019
  18. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me