Changing I2P ports in addrman may wrongly skip some entries from "new" buckets #22470

issue vasild opened this issue on July 16, 2021
  1. vasild commented at 4:26 PM on July 16, 2021: member

    The problem was originally reported in #22450 (comment). This is a dedicated issue to track it independently because it is a different problem than the one reported in #22450 OP/description.

    If the same I2P address appears in multiple new buckets, then the first time this loop finds that address, it'll update the port and reposition it in that bucket. Any subsequent times that the address is encountered, it will already have had its port updated so the inner loop will continue ...

    Thanks, @jnewbery!

  2. vasild added the label Bug on Jul 16, 2021
  3. vasild referenced this in commit 24cad63539 on Jul 16, 2021
  4. vasild commented at 4:41 PM on July 16, 2021: member
  5. jonatack commented at 9:08 AM on July 17, 2021: member

    Indeed, this was a good find by @jnewbery.

  6. vasild referenced this in commit fe67f03d0f on Jul 19, 2021
  7. vasild referenced this in commit d4b67c8ebc on Jul 19, 2021
  8. MarcoFalke renamed this:
    Changing I2P ports in addrman may wronly skip some entries from "new" buckets
    Changing I2P ports in addrman may wrongly skip some entries from "new" buckets
    on Jul 19, 2021
  9. fanquake closed this on Jul 20, 2021

  10. fanquake referenced this in commit 624a193330 on Jul 20, 2021
  11. josibake referenced this in commit 4abcf2370c on Jul 21, 2021
  12. hebasto referenced this in commit 90df9ac392 on Jul 22, 2021
  13. sidhujag referenced this in commit 2a336a660b on Jul 23, 2021
  14. fanquake referenced this in commit 5cf28d5203 on Aug 3, 2021
  15. janus referenced this in commit c5da7c0c29 on Nov 5, 2021
  16. DrahtBot locked this on Aug 18, 2022

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-17 09:14 UTC

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