p2p: remove BIP155Network::TORV2 from GetBIP155Network()

This commit is contained in:
Jon Atack 2021-05-26 16:34:39 +02:00
parent 7d1769bc45
commit 1d631e956f
No known key found for this signature in database
GPG key ID: 4F5721B3D0E3921D
2 changed files with 2 additions and 9 deletions

View file

@ -32,14 +32,7 @@ CNetAddr::BIP155Network CNetAddr::GetBIP155Network() const
case NET_IPV6:
return BIP155Network::IPV6;
case NET_ONION:
switch (m_addr.size()) {
case ADDR_TORV2_SIZE:
return BIP155Network::TORV2;
case ADDR_TORV3_SIZE:
return BIP155Network::TORV3;
default:
assert(false);
}
return BIP155Network::TORV3;
case NET_I2P:
return BIP155Network::I2P;
case NET_CJDNS: