Skip to content

Commit cb443c7

Browse files
vasildhebasto
authored andcommitted
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 7c9a519 commit cb443c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/netaddress.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class CNetAddr
227227
*/
228228
bool IsRelayable() const
229229
{
230-
return IsIPv4() || IsIPv6() || IsTor();
230+
return IsIPv4() || IsIPv6() || IsTor() || IsI2P();
231231
}
232232

233233
/**

0 commit comments

Comments
 (0)