Use Tor v3 .onion in qa tests

This commit is contained in:
Duke
2023-01-28 08:44:36 -08:00
parent 2f8a138cce
commit 0d79d11a95

View File

@@ -102,11 +102,11 @@ class ProxyTest(BitcoinTestFramework):
if test_onion:
# Test: outgoing onion connection through node
node.addnode("hushostk4e4re.onion:18030", "onetry")
node.addnode("hushv3h6mbxd2pptj42reko3jcexcgnz5zvp3mqcu6myto3jhhn4yzyd.onion:18030", "onetry")
cmd = proxies[2].queue.get()
assert(isinstance(cmd, Socks5Command))
assert_equal(cmd.atyp, AddressType.DOMAINNAME)
assert_equal(cmd.addr, "hushostk4e4re.onion")
assert_equal(cmd.addr, "hushv3h6mbxd2pptj42reko3jcexcgnz5zvp3mqcu6myto3jhhn4yzyd.onion")
assert_equal(cmd.port, 18030)
if not auth:
assert_equal(cmd.username, None)