diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2020-08-18 21:30:12 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2020-12-10 14:41:41 +0100 |
commit | 7fabe0f359ae16ed36ce4ca2c33631d038c21448 (patch) | |
tree | e5153f361dd446a1f156cb5c208335ec2516f5a5 /src/chainparamsseeds.h | |
parent | bd60a9a8edd4a3fe2f4f605b77cdae34969eaaf2 (diff) |
net: don't relay to the address' originator
For each address to be relayed we "randomly" pick 2 nodes to send the
address to (in `RelayAddress()`). However we do not take into
consideration that it does not make sense to relay the address back to
its originator (`CNode::PushAddress()` will do nothing in that case).
This means that if the originator is among the "randomly" picked nodes,
then we will relay to one node less than intended.
Fix this by skipping the originating node when choosing candidates to
relay to.
Diffstat (limited to 'src/chainparamsseeds.h')
0 files changed, 0 insertions, 0 deletions