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:
parent
455780b1ae
commit
f9682e75ac
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue