File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ void CNetAddr::SetIP(const CNetAddr& ipIn)
115
115
assert (ipIn.m_addr .size () == ADDR_IPV6_SIZE);
116
116
break ;
117
117
case NET_ONION:
118
- assert (ipIn.m_addr .size () == ADDR_TORV2_SIZE || ipIn. m_addr . size () == ADDR_TORV3_SIZE);
118
+ assert (ipIn.m_addr .size () == ADDR_TORV3_SIZE);
119
119
break ;
120
120
case NET_I2P:
121
121
assert (ipIn.m_addr .size () == ADDR_I2P_SIZE);
Original file line number Diff line number Diff line change @@ -97,9 +97,6 @@ static constexpr size_t ADDR_IPV4_SIZE = 4;
97
97
// / Size of IPv6 address (in bytes).
98
98
static constexpr size_t ADDR_IPV6_SIZE = 16 ;
99
99
100
- // / Size of TORv2 address (in bytes).
101
- static constexpr size_t ADDR_TORV2_SIZE = 10 ;
102
-
103
100
// / Size of TORv3 address (in bytes). This is the length of just the address
104
101
// / as used in BIP155, without the checksum and the version byte.
105
102
static constexpr size_t ADDR_TORV3_SIZE = 32 ;
You can’t perform that action at this time.
0 commit comments