mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-31 20:01:06 +02:00
test: Fix out-of-range port collisions
This commit is contained in:
@@ -44,8 +44,8 @@ class AddrTest(BitcoinTestFramework):
|
||||
def set_test_params(self):
|
||||
self.num_nodes = 1
|
||||
# Use some of the remaining p2p ports for the onion binds.
|
||||
self.onion_port1 = p2p_port(1)
|
||||
self.onion_port2 = p2p_port(2)
|
||||
self.onion_port1 = p2p_port(self.num_nodes)
|
||||
self.onion_port2 = p2p_port(self.num_nodes + 1)
|
||||
self.extra_args = [
|
||||
[f"-bind=127.0.0.1:{self.onion_port1}=onion", f"-bind=127.0.0.1:{self.onion_port2}=onion"],
|
||||
]
|
||||
|
Reference in New Issue
Block a user