removed unused code in INV message #10351

pull Greg-Griffith wants to merge 1 commits into bitcoin:master from Greg-Griffith:master changing 1 files +0 −5
  1. Greg-Griffith commented at 5:56 AM on May 7, 2017: none

    vToFetch is never used after declaration within the INV message. When checked if not empty, evaluation is always false. Best case scenario this is optimized by the compiler, worst case it wastes cpu cycles. It should be removed either way.

  2. removed unused code in INV message
    vToFetch is never used after declaration. When checked if not empty,
    evaluation is always false. Best case scenario this is optimized by the
    compiler, worst case it wastes  cpu cycles.  It should be removed either
    way.
    c707ca872d
  3. fanquake added the label P2P on May 7, 2017
  4. laanwj commented at 7:46 AM on May 7, 2017: member

    Good catch, seems that this has been unused since #8872 / 037159cebf1eae4445050cec029986514ed4e9e2 (Remove block-request logic from INV message processing). utack https://github.com/bitcoin/bitcoin/pull/10351/commits/c707ca872dcce98892431d33c250372da714f15f

  5. sipa commented at 6:00 PM on May 7, 2017: member

    utACK c707ca872dcce98892431d33c250372da714f15f

  6. MarcoFalke commented at 7:20 PM on May 7, 2017: member

    utACK c707ca872dcce98892431d33c250372da714f15f

  7. paveljanik commented at 7:59 PM on May 7, 2017: contributor

    ACK c707ca8

  8. dcousens approved
  9. sipa merged this on May 8, 2017
  10. sipa closed this on May 8, 2017

  11. sipa referenced this in commit 3f57c55dba on May 8, 2017
  12. 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-05-02 12:15 UTC

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