Net: Remove "Address refresh broadcast" logic.#6745
Conversation
addrKnown is now a CRollingBloomFilter which forgets about entries every 5000 inserts.
|
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. |
|
@jgarzik The local address is broadcast to all outbound connected peers on connect. |
|
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. |
|
@sipa Well unless you think our reasoning is wrong? Is there some privacy compromise here? |
|
I guess there are a few ways forward:
I think I prefer 3. |
|
@sipa how about randomly settings bits in the filter to 0 instead of completely clearing it? |
addrKnown is now a CRollingBloomFilter which forgets about entries every 5000 inserts