0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-03-06 14:19:59 -05:00

[test_framework] Set PortSeed.n directly after initialising params

This allows us to use `p2p_port()` with `set_test_params()`.
This commit is contained in:
dergoegge 2022-06-08 20:57:48 +02:00
parent 455780b1ae
commit f9682e75ac

View file

@ -223,11 +223,11 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
# It still needs to exist and be None in order for tests to work however.
self.options.descriptors = None
PortSeed.n = self.options.port_seed
def setup(self):
"""Call this method to start up the test framework object with options set."""
PortSeed.n = self.options.port_seed
check_json_precision()
self.options.cachedir = os.path.abspath(self.options.cachedir)