Net: Remove "Address refresh broadcast" logic. #6745

pull pstratem wants to merge 1 commits into bitcoin:master from pstratem:addr_known_reset changing 1 files +0 −18
  1. pstratem commented at 12:43 AM on October 2, 2015: contributor

    addrKnown is now a CRollingBloomFilter which forgets about entries every 5000 inserts

  2. Remove "Address refresh broadcast" logic.
    addrKnown is now a CRollingBloomFilter which forgets about entries every 5000 inserts.
    0087713c55
  3. jgarzik commented at 1:24 AM on October 2, 2015: contributor

    This seems like it would degrade service on networks like testnet with a low level of addresses / address traffic, where the local address would be broadcast far less frequently (versus current code).

    A time based rotation (clearing) is not equivalent to a traffic based rotation.

  4. pstratem commented at 1:31 AM on October 2, 2015: contributor

    @jgarzik The local address is broadcast to all outbound connected peers on connect.

  5. laanwj added the label P2P on Oct 5, 2015
  6. laanwj commented at 11:49 AM on December 3, 2015: member

    Agree with @jgarzik. I'm not convinced that this is a good idea, specially rebroadcasting our own address once in a while is useful, I don't think we should rely on the implementation details of the rolling bloom filter to do this as a side-effect.

  7. laanwj closed this on Dec 3, 2015

  8. sipa commented at 12:16 PM on December 3, 2015: member

    I guess I'll remove this part from #7125 as well then.

    EDIT: #7125 only removes the wipe-the-filter logic, not the rebroadcast logic.

  9. laanwj commented at 12:32 PM on December 3, 2015: member

    @sipa Well unless you think our reasoning is wrong? Is there some privacy compromise here? (at some point we might replace the rolling bloom filters with something else again, and we may have forgotten the decision to remove this, hence I'm somewhat in favor of doing it explicitly)

  10. laanwj reopened this on Dec 3, 2015

  11. sipa commented at 12:52 PM on December 3, 2015: member

    I guess there are a few ways forward:

    • Keep as-is, drop the entire filter every 24 hours + rebroadcast.
    • Don't drop the filter, but still rebroadcast your own address periodically in a forceful way (bypassing the filter).
    • Don't drop the filter, but still rebroadcast periodically (subject to the filter, which means no rebroadcast if there was not enough noise to hide the data in).
    • This PR (no drop, no rebroadcast).

    I think I prefer 3.

  12. pstratem commented at 1:30 AM on December 4, 2015: contributor

    @sipa how about randomly settings bits in the filter to 0 instead of completely clearing it?

  13. pstratem closed this on Dec 8, 2015

  14. DrahtBot locked this on Sep 8, 2021
Labels

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-19 00:15 UTC

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