From 56f9dba015c592b8925795012e3061a710070a27 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sun, 11 Oct 2020 00:13:10 -0700 Subject: Only relay IPv4, IPv6, Tor addresses --- src/net_processing.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/net_processing.cpp') 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 -- cgit v1.2.3