aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-02-15 16:55:24 +0100
committerVasil Dimov <vd@FreeBSD.org>2021-03-01 18:19:47 +0100
commita701fcf01f3ea9a12e869bfa52321302cf68351c (patch)
tree59e0dd70f416f5b7e7d64082cea55aab2f7dd711 /src/netbase.cpp
parent0181e244394bd9e68e9f0d44704e7b0fd12a6b1f (diff)
net: Do not skip the I2P network from GetNetworkNames()
So that help texts include "i2p" in: * `./bitcoind -help` (in `-onlynet` description) * `getpeerinfo` RPC * `getnetworkinfo` RPC Co-authored-by: Jon Atack <jon@atack.com>
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r--src/netbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp
index b09b21c2a1..7dc616080d 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -78,7 +78,7 @@ std::vector<std::string> GetNetworkNames(bool append_unroutable)
std::vector<std::string> names;
for (int n = 0; n < NET_MAX; ++n) {
const enum Network network{static_cast<Network>(n)};
- if (network == NET_UNROUTABLE || network == NET_I2P || network == NET_CJDNS || network == NET_INTERNAL) continue;
+ if (network == NET_UNROUTABLE || network == NET_CJDNS || network == NET_INTERNAL) continue;
names.emplace_back(GetNetworkName(network));
}
if (append_unroutable) {