mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-01 19:21:28 +02:00
net: update NET_UNROUTABLE to not_publicly_routable in GetNetworkName()
This commit is contained in:
@ -55,7 +55,7 @@ enum Network ParseNetwork(const std::string& net_in) {
|
|||||||
std::string GetNetworkName(enum Network net)
|
std::string GetNetworkName(enum Network net)
|
||||||
{
|
{
|
||||||
switch (net) {
|
switch (net) {
|
||||||
case NET_UNROUTABLE: return "unroutable";
|
case NET_UNROUTABLE: return "not_publicly_routable";
|
||||||
case NET_IPV4: return "ipv4";
|
case NET_IPV4: return "ipv4";
|
||||||
case NET_IPV6: return "ipv6";
|
case NET_IPV6: return "ipv6";
|
||||||
case NET_ONION: return "onion";
|
case NET_ONION: return "onion";
|
||||||
|
@ -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
|
RANGE_BEGIN = PORT_MIN + 2 * PORT_RANGE # Start after p2p and rpc ports
|
||||||
|
|
||||||
# Networks returned by RPC getpeerinfo, defined in src/netbase.cpp::GetNetworkName()
|
# Networks returned by RPC getpeerinfo.
|
||||||
NET_UNROUTABLE = "unroutable"
|
NET_UNROUTABLE = "not_publicly_routable"
|
||||||
NET_IPV4 = "ipv4"
|
NET_IPV4 = "ipv4"
|
||||||
NET_IPV6 = "ipv6"
|
NET_IPV6 = "ipv6"
|
||||||
NET_ONION = "onion"
|
NET_ONION = "onion"
|
||||||
|
Reference in New Issue
Block a user