aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2020-10-11 00:13:10 -0700
committerPieter Wuille <[email protected]>2020-10-11 11:29:11 -0700
commit56f9dba015c592b8925795012e3061a710070a27 (patch)
tree008f2313c14b9a87d9a82ef3bc4df45e593faf0c /src/net_processing.cpp
parentMention BIP155 in doc/bips.md (diff)
downloaddiscoin-56f9dba015c592b8925795012e3061a710070a27.tar.xz
discoin-56f9dba015c592b8925795012e3061a710070a27.zip
Only relay IPv4, IPv6, Tor addresses
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 951b8a181..9ad3f5d6f 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -1528,6 +1528,7 @@ void RelayTransaction(const uint256& txid, const uint256& wtxid, const CConnman&
static void RelayAddress(const CAddress& addr, bool fReachable, const CConnman& connman)
{
+ if (!fReachable && !addr.IsRelayable()) return;
// Relay to a limited number of other nodes
// Use deterministic randomness to send to the same nodes for 24 hours