diff options
author | MacroFake <falke.marco@gmail.com> | 2022-06-10 12:59:34 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-06-10 15:56:07 +0200 |
commit | fa7a711a30b707cbdee4435dd0a956bffb7aaccb (patch) | |
tree | f096ffc23cab73f1d35b5888872556b07ddfec38 /test/functional/p2p_getaddr_caching.py | |
parent | c3daa321f921f4e2514ef93c48d39ae39e7f2d46 (diff) | |
download | bitcoin-fa7a711a30b707cbdee4435dd0a956bffb7aaccb.tar.xz |
test: Fix out-of-range port collisions
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"], ] |