diff --git a/src/netaddress.cpp b/src/netaddress.cpp index eeb88d679c..b6f0463a1d 100644 --- a/src/netaddress.cpp +++ b/src/netaddress.cpp @@ -522,7 +522,6 @@ bool CNetAddr::IsAddrV1Compatible() const case NET_INTERNAL: return true; case NET_ONION: - return m_addr.size() == ADDR_TORV2_SIZE; case NET_I2P: case NET_CJDNS: return false; diff --git a/src/test/net_tests.cpp b/src/test/net_tests.cpp index 8d47bfb290..1f5c29c657 100644 --- a/src/test/net_tests.cpp +++ b/src/test/net_tests.cpp @@ -613,7 +613,7 @@ BOOST_AUTO_TEST_CASE(cnetaddr_unserialize_v2) s >> addr; BOOST_CHECK(addr.IsValid()); BOOST_CHECK(addr.IsTor()); - BOOST_CHECK(addr.IsAddrV1Compatible()); + BOOST_CHECK(!addr.IsAddrV1Compatible()); BOOST_CHECK_EQUAL(addr.ToString(), "6hzph5hv6337r6p2.onion"); BOOST_REQUIRE(s.empty());