aboutsummaryrefslogtreecommitdiff
path: root/src/netaddress.cpp
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2021-05-24 22:42:39 +0200
committerJon Atack <jon@atack.com>2021-05-28 01:46:29 +0200
commit7d1769bc450a98c093a066d6daed84337040dbfb (patch)
treededc1da1ae4ddcbd080091aebd95abb1a2771c58 /src/netaddress.cpp
parenteba9a94b9f56be2fda623e77f19b960425ea1eb5 (diff)
p2p: remove torv2 from SetNetFromBIP155Network()
Diffstat (limited to 'src/netaddress.cpp')
-rw-r--r--src/netaddress.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/netaddress.cpp b/src/netaddress.cpp
index b6f0463a1d..4b4094fc25 100644
--- a/src/netaddress.cpp
+++ b/src/netaddress.cpp
@@ -72,14 +72,6 @@ bool CNetAddr::SetNetFromBIP155Network(uint8_t possible_bip155_net, size_t addre
throw std::ios_base::failure(
strprintf("BIP155 IPv6 address with length %u (should be %u)", address_size,
ADDR_IPV6_SIZE));
- case BIP155Network::TORV2:
- if (address_size == ADDR_TORV2_SIZE) {
- m_net = NET_ONION;
- return true;
- }
- throw std::ios_base::failure(
- strprintf("BIP155 TORv2 address with length %u (should be %u)", address_size,
- ADDR_TORV2_SIZE));
case BIP155Network::TORV3:
if (address_size == ADDR_TORV3_SIZE) {
m_net = NET_ONION;