mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Merge 33884e7e60 into merged_master (Bitcoin PR bitcoin/bitcoin#30545)
This commit is contained in:
commit
41c4ee2a18
1 changed files with 6 additions and 5 deletions
|
|
@ -151,7 +151,8 @@ class ProxyTest(BitcoinTestFramework):
|
|||
rv = []
|
||||
addr = "15.61.23.23:1234"
|
||||
self.log.debug(f"Test: outgoing IPv4 connection through node {node.index} for address {addr}")
|
||||
node.addnode(addr, "onetry")
|
||||
# v2transport=False is used to avoid reconnections with v1 being scheduled. These could interfere with later checks.
|
||||
node.addnode(addr, "onetry", v2transport=False)
|
||||
cmd = proxies[0].queue.get()
|
||||
assert isinstance(cmd, Socks5Command)
|
||||
# Note: bitcoind's SOCKS5 implementation only sends atyp DOMAINNAME, even if connecting directly to IPv4/IPv6
|
||||
|
|
@ -167,7 +168,7 @@ class ProxyTest(BitcoinTestFramework):
|
|||
if self.have_ipv6:
|
||||
addr = "[1233:3432:2434:2343:3234:2345:6546:4534]:5443"
|
||||
self.log.debug(f"Test: outgoing IPv6 connection through node {node.index} for address {addr}")
|
||||
node.addnode(addr, "onetry")
|
||||
node.addnode(addr, "onetry", v2transport=False)
|
||||
cmd = proxies[1].queue.get()
|
||||
assert isinstance(cmd, Socks5Command)
|
||||
# Note: bitcoind's SOCKS5 implementation only sends atyp DOMAINNAME, even if connecting directly to IPv4/IPv6
|
||||
|
|
@ -183,7 +184,7 @@ class ProxyTest(BitcoinTestFramework):
|
|||
if test_onion:
|
||||
addr = "pg6mmjiyjmcrsslvykfwnntlaru7p5svn6y2ymmju6nubxndf4pscryd.onion:8333"
|
||||
self.log.debug(f"Test: outgoing onion connection through node {node.index} for address {addr}")
|
||||
node.addnode(addr, "onetry")
|
||||
node.addnode(addr, "onetry", v2transport=False)
|
||||
cmd = proxies[2].queue.get()
|
||||
assert isinstance(cmd, Socks5Command)
|
||||
assert_equal(cmd.atyp, AddressType.DOMAINNAME)
|
||||
|
|
@ -198,7 +199,7 @@ class ProxyTest(BitcoinTestFramework):
|
|||
if test_cjdns:
|
||||
addr = "[fc00:1:2:3:4:5:6:7]:8888"
|
||||
self.log.debug(f"Test: outgoing CJDNS connection through node {node.index} for address {addr}")
|
||||
node.addnode(addr, "onetry")
|
||||
node.addnode(addr, "onetry", v2transport=False)
|
||||
cmd = proxies[1].queue.get()
|
||||
assert isinstance(cmd, Socks5Command)
|
||||
assert_equal(cmd.atyp, AddressType.DOMAINNAME)
|
||||
|
|
@ -212,7 +213,7 @@ class ProxyTest(BitcoinTestFramework):
|
|||
|
||||
addr = "node.noumenon:8333"
|
||||
self.log.debug(f"Test: outgoing DNS name connection through node {node.index} for address {addr}")
|
||||
node.addnode(addr, "onetry")
|
||||
node.addnode(addr, "onetry", v2transport=False)
|
||||
cmd = proxies[3].queue.get()
|
||||
assert isinstance(cmd, Socks5Command)
|
||||
assert_equal(cmd.atyp, AddressType.DOMAINNAME)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue