[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:
1 parent
455780b1ae
commit
f9682e75ac
1 file changed
+2
-2
@@ -223,11 +223,11 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
|||||||
# It still needs to exist and be None in order for tests to work however.
|
# It still needs to exist and be None in order for tests to work however.
|
||||||
self.options.descriptors = None
|
self.options.descriptors = None
|
||||||
|
|
||||||
|
PortSeed.n = self.options.port_seed
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
"""Call this method to start up the test framework object with options set."""
|
"""Call this method to start up the test framework object with options set."""
|
||||||
|
|
||||||
PortSeed.n = self.options.port_seed
|
|
||||||
|
|
||||||
check_json_precision()
|
check_json_precision()
|
||||||
|
|
||||||
self.options.cachedir = os.path.abspath(self.options.cachedir)
|
self.options.cachedir = os.path.abspath(self.options.cachedir)
|
||||||
|
|||||||
Reference in new issue
Block a user