Skip to content

Commit ba45f02

Browse files
committed
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 bitcoin/bitcoin#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.
1 parent ef8f296 commit ba45f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/netaddress.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class CNetAddr
222222
*/
223223
bool IsRelayable() const
224224
{
225-
return IsIPv4() || IsIPv6() || IsTor();
225+
return IsIPv4() || IsIPv6() || IsTor() || IsI2P();
226226
}
227227

228228
/**

0 commit comments

Comments
 (0)