aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2021-01-19 15:35:56 +0100
committerJon Atack <jon@atack.com>2021-02-02 00:00:39 +0100
commitb45eae4d5332f1da71ba9ec983fe7818fa4d32e9 (patch)
treefe3262207ba88f11570675960412ac66d631dadf
parent2c0fc856a6b0c82c5dddbbaee417171577514507 (diff)
downloadbitcoin-b45eae4d5332f1da71ba9ec983fe7818fa4d32e9.tar.xz
net: update NET_UNROUTABLE to not_publicly_routable in GetNetworkName()
-rw-r--r--src/netbase.cpp2
-rwxr-xr-xtest/functional/feature_proxy.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp
index 264029d8a2..15abcbd98c 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -55,7 +55,7 @@ enum Network ParseNetwork(const std::string& net_in) {
std::string GetNetworkName(enum Network net)
{
switch (net) {
- case NET_UNROUTABLE: return "unroutable";
+ case NET_UNROUTABLE: return "not_publicly_routable";
case NET_IPV4: return "ipv4";
case NET_IPV6: return "ipv6";
case NET_ONION: return "onion";
diff --git a/test/functional/feature_proxy.py b/test/functional/feature_proxy.py
index cd5eff9184..2983feaa0d 100755
--- a/test/functional/feature_proxy.py
+++ b/test/functional/feature_proxy.py
@@ -44,8 +44,8 @@ from test_framework.netutil import test_ipv6_local
RANGE_BEGIN = PORT_MIN + 2 * PORT_RANGE # Start after p2p and rpc ports
-# Networks returned by RPC getpeerinfo, defined in src/netbase.cpp::GetNetworkName()
-NET_UNROUTABLE = "unroutable"
+# Networks returned by RPC getpeerinfo.
+NET_UNROUTABLE = "not_publicly_routable"
NET_IPV4 = "ipv4"
NET_IPV6 = "ipv6"
NET_ONION = "onion"