diff options
Diffstat (limited to 'test/functional/p2p_getaddr_caching.py')
-rwxr-xr-x | test/functional/p2p_getaddr_caching.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/p2p_getaddr_caching.py b/test/functional/p2p_getaddr_caching.py index 0d42bd9d9e..8907c34a89 100755 --- a/test/functional/p2p_getaddr_caching.py +++ b/test/functional/p2p_getaddr_caching.py @@ -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"], ] |