From ba45f0270815d54ae3290efc16324c2ff1984565 Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Thu, 10 Jun 2021 14:16:41 +0200 Subject: net: relay I2P addresses even if not reachable (by us) Nodes that can reach the I2P network (have set `-i2psam=`) will relay I2P addresses even without this patch. However, nodes that can't reach the I2P network will not. This was done as a precaution in https://github.com/bitcoin/bitcoin/pull/20119 before anybody could connect to I2P because then, for sure, it would have been useless. Now, however, we have I2P support and a bunch of I2P nodes, so get all nodes on the network to relay I2P addresses to help with propagation, similarly to what we do with Tor addresses. --- src/netaddress.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/netaddress.h b/src/netaddress.h index 0d04ab88fb..e0d056b626 100644 --- a/src/netaddress.h +++ b/src/netaddress.h @@ -222,7 +222,7 @@ class CNetAddr */ bool IsRelayable() const { - return IsIPv4() || IsIPv6() || IsTor(); + return IsIPv4() || IsIPv6() || IsTor() || IsI2P(); } /** -- cgit v1.2.3