aboutsummaryrefslogtreecommitdiff
path: root/src/netaddress.h
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-06-10 14:16:41 +0200
committerVasil Dimov <vd@FreeBSD.org>2021-06-10 14:16:41 +0200
commitba45f0270815d54ae3290efc16324c2ff1984565 (patch)
tree8a1f6a2f2e4cb7f76d22c5d82712d15532748ee8 /src/netaddress.h
parentef8f2966ac8e486f622f9803f24bd4021c6ff9ed (diff)
downloadbitcoin-ba45f0270815d54ae3290efc16324c2ff1984565.tar.xz
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.
Diffstat (limited to 'src/netaddress.h')
-rw-r--r--src/netaddress.h2
1 files changed, 1 insertions, 1 deletions
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();
}
/**