mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
p2p: remove BIP155Network::TORV2 from GetBIP155Network()
This commit is contained in:
parent
7d1769bc45
commit
1d631e956f
2 changed files with 2 additions and 9 deletions
|
@ -32,14 +32,7 @@ CNetAddr::BIP155Network CNetAddr::GetBIP155Network() const
|
||||||
case NET_IPV6:
|
case NET_IPV6:
|
||||||
return BIP155Network::IPV6;
|
return BIP155Network::IPV6;
|
||||||
case NET_ONION:
|
case NET_ONION:
|
||||||
switch (m_addr.size()) {
|
return BIP155Network::TORV3;
|
||||||
case ADDR_TORV2_SIZE:
|
|
||||||
return BIP155Network::TORV2;
|
|
||||||
case ADDR_TORV3_SIZE:
|
|
||||||
return BIP155Network::TORV3;
|
|
||||||
default:
|
|
||||||
assert(false);
|
|
||||||
}
|
|
||||||
case NET_I2P:
|
case NET_I2P:
|
||||||
return BIP155Network::I2P;
|
return BIP155Network::I2P;
|
||||||
case NET_CJDNS:
|
case NET_CJDNS:
|
||||||
|
|
|
@ -302,7 +302,7 @@ class CNetAddr
|
||||||
/**
|
/**
|
||||||
* Get the BIP155 network id of this address.
|
* Get the BIP155 network id of this address.
|
||||||
* Must not be called for IsInternal() objects.
|
* Must not be called for IsInternal() objects.
|
||||||
* @returns BIP155 network id
|
* @returns BIP155 network id, except TORV2 which is no longer supported.
|
||||||
*/
|
*/
|
||||||
BIP155Network GetBIP155Network() const;
|
BIP155Network GetBIP155Network() const;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue