Note that this PR used this code 989e85a, but then I force-pushed the branch so you can’t see it here.
We currently announce our own network address to all our peers (except block-relay-only peers) on the handshake. We also relay further other nodes’ addresses as long as the batch is less than 10 elements. We should not relay it to SPV, because they never store or relay it further.
- it actually makes addr relay slower, because for the second case we pick 1 or 2 peers at random, and it’s possible that we’ll forward a message to an SPV.
- it’s a waste of resources (bandwidth, also RAM after 17164).