addrKnown is now a CRollingBloomFilter which forgets about entries every 5000 inserts
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-
pstratem commented at 12:43 AM on October 2, 2015: contributor
-
0087713c55
Remove "Address refresh broadcast" logic.
addrKnown is now a CRollingBloomFilter which forgets about entries every 5000 inserts.
-
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.
- laanwj added the label P2P on Oct 5, 2015
-
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.
- laanwj closed this on Dec 3, 2015
-
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)
- laanwj reopened this on Dec 3, 2015
-
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.
- pstratem closed this on Dec 8, 2015
- DrahtBot locked this on Sep 8, 2021