From 4f19508ae7e6b230da95eb695a8a0c17de3276a9 Mon Sep 17 00:00:00 2001 From: b-l-u-e Date: Sun, 15 Feb 2026 00:10:35 +0300 Subject: [PATCH] test: dont connect nodes in feature_bind_port_discover Signed-off-by: b-l-u-e --- test/functional/feature_bind_port_discover.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/functional/feature_bind_port_discover.py b/test/functional/feature_bind_port_discover.py index 338dbd02b3a..f3fe3454233 100755 --- a/test/functional/feature_bind_port_discover.py +++ b/test/functional/feature_bind_port_discover.py @@ -38,6 +38,24 @@ class BindPortDiscoverTest(BitcoinTestFramework): ] self.num_nodes = len(self.extra_args) + def setup_network(self): + """ + Override to avoid connecting nodes together. This test intentionally does not connect nodes + because each node is bound to a different address or interface, and connections are not needed. + """ + self.setup_nodes() + + def setup_nodes(self): + """ + Override to set has_explicit_bind=True for nodes with explicit bind arguments. + """ + self.add_nodes(self.num_nodes, self.extra_args) + # TestNode.start() will add -bind= to extra_args if has_explicit_bind is + # False. We do not want any -bind= thus set has_explicit_bind to True. + for node in self.nodes: + node.has_explicit_bind = True + self.start_nodes() + def add_options(self, parser): parser.add_argument( "--ihave1111and2222", action='store_true', dest="ihave1111and2222",