File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,7 @@ CNetAddr::BIP155Network CNetAddr::GetBIP155Network() const
32
32
case NET_IPV6:
33
33
return BIP155Network::IPV6;
34
34
case NET_ONION:
35
- switch (m_addr.size ()) {
36
- case ADDR_TORV2_SIZE:
37
- return BIP155Network::TORV2;
38
- case ADDR_TORV3_SIZE:
39
- return BIP155Network::TORV3;
40
- default :
41
- assert (false );
42
- }
35
+ return BIP155Network::TORV3;
43
36
case NET_I2P:
44
37
return BIP155Network::I2P;
45
38
case NET_CJDNS:
Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ class CNetAddr
302
302
/* *
303
303
* Get the BIP155 network id of this address.
304
304
* Must not be called for IsInternal() objects.
305
- * @returns BIP155 network id
305
+ * @returns BIP155 network id, except TORV2 which is no longer supported.
306
306
*/
307
307
BIP155Network GetBIP155Network () const ;
308
308
You can’t perform that action at this time.
0 commit comments