Browse Source

Use Tor v3 .onion in qa tests

pull/253/head
Duke 1 year ago
parent
commit
0d79d11a95
  1. 4
      qa/rpc-tests/proxy_test.py

4
qa/rpc-tests/proxy_test.py

@ -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)

Loading…
Cancel
Save