code to "request last block in an inv bundle (even if we already have it)" does not work. #1185

issue rebroad opened this issue on May 2, 2012
  1. rebroad commented at 6:55 PM on May 2, 2012: contributor

    in main.cpp, there is a section that adds to the "askfor" queue a block where AlreadyHave() returns true. Then later when the code retrieves the queue, it erases it without actioning it due to AlreadyHave() returning true.

    Which bit of code is incorrect? The adding to the queue part, or the actioning the queue part?

  2. sipa commented at 1:35 AM on May 3, 2012: member

    You can make comments inside the actual code. I'm not sure which part you're talking about now.

  3. rebroad commented at 2:20 PM on May 3, 2012: contributor

    ah.. good idea... using github? do I need to find the commit that added the code first?

    (by the way, my bitcoin is still reporting 0.6.0rc4, even though I've merged with the latest master - any idea how to get it to use the correct tag please? - sorry for asking in here - no forum access)

  4. Diapolo commented at 3:21 PM on May 3, 2012: none

    That's how you can link (this is line 2 in main.cpp from current master): https://github.com/bitcoin/bitcoin/blob/master/src/main.cpp#L2

  5. rebroad commented at 6:54 PM on May 4, 2012: contributor

    @sipa, the commit in question that introduced the code (which I maintain doesn't do what it says it does) is this: https://github.com/bitcoin/bitcoin/commit/0aa89c08ff271f34271e6fd2eb1ef04afdbcab3a

  6. rebroad closed this on Feb 27, 2014

  7. suprnurd referenced this in commit 8126e92441 on Dec 5, 2017
  8. lateminer referenced this in commit 3ffefa4062 on Jan 22, 2019
  9. lateminer referenced this in commit 682d54cd12 on Dec 25, 2019
  10. Bushstar referenced this in commit cfb8b06b52 on Nov 12, 2020
  11. MarcoFalke locked this on Sep 8, 2021
Contributors

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:16 UTC

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