mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 02:25:40 +01:00
p2p: remove torv2 in SetIP() and ADDR_TORV2_SIZE constant
This commit is contained in:
parent
cff5ec477a
commit
3d39042144
@ -115,7 +115,7 @@ void CNetAddr::SetIP(const CNetAddr& ipIn)
|
|||||||
assert(ipIn.m_addr.size() == ADDR_IPV6_SIZE);
|
assert(ipIn.m_addr.size() == ADDR_IPV6_SIZE);
|
||||||
break;
|
break;
|
||||||
case NET_ONION:
|
case NET_ONION:
|
||||||
assert(ipIn.m_addr.size() == ADDR_TORV2_SIZE || ipIn.m_addr.size() == ADDR_TORV3_SIZE);
|
assert(ipIn.m_addr.size() == ADDR_TORV3_SIZE);
|
||||||
break;
|
break;
|
||||||
case NET_I2P:
|
case NET_I2P:
|
||||||
assert(ipIn.m_addr.size() == ADDR_I2P_SIZE);
|
assert(ipIn.m_addr.size() == ADDR_I2P_SIZE);
|
||||||
|
@ -97,9 +97,6 @@ static constexpr size_t ADDR_IPV4_SIZE = 4;
|
|||||||
/// Size of IPv6 address (in bytes).
|
/// Size of IPv6 address (in bytes).
|
||||||
static constexpr size_t ADDR_IPV6_SIZE = 16;
|
static constexpr size_t ADDR_IPV6_SIZE = 16;
|
||||||
|
|
||||||
/// Size of TORv2 address (in bytes).
|
|
||||||
static constexpr size_t ADDR_TORV2_SIZE = 10;
|
|
||||||
|
|
||||||
/// Size of TORv3 address (in bytes). This is the length of just the address
|
/// Size of TORv3 address (in bytes). This is the length of just the address
|
||||||
/// as used in BIP155, without the checksum and the version byte.
|
/// as used in BIP155, without the checksum and the version byte.
|
||||||
static constexpr size_t ADDR_TORV3_SIZE = 32;
|
static constexpr size_t ADDR_TORV3_SIZE = 32;
|
||||||
|
Loading…
Reference in New Issue
Block a user