Skip to content

Commit

Permalink
test: don't attempt to reconnect already connected nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Sep 26, 2024
1 parent 4a0fc8b commit 40f2ab9
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
3 changes: 0 additions & 3 deletions test/functional/feature_dip3_v19.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ def run_test(self):
self.test_node = self.nodes[0].add_p2p_connection(TestP2PConn())
null_hash = format(0, "064x")

for i in range(len(self.nodes)):
self.connect_nodes(i, 0)

self.nodes[0].sporkupdate("SPORK_17_QUORUM_DKG_ENABLED", 0)
self.wait_for_sporks_same()

Expand Down
2 changes: 1 addition & 1 deletion test/functional/feature_llmq_chainlocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def run_test(self):
# Connect all nodes to node1 so that we always have the whole network connected
# Otherwise only masternode connections will be established between nodes, which won't propagate TXs/blocks
# Usually node0 is the one that does this, but in this test we isolate it multiple times
for i in range(len(self.nodes)):
for i in range(2, len(self.nodes)):
self.connect_nodes(i, 1)

self.test_coinbase_best_cl(self.nodes[0], expected_cl_in_cb=False)
Expand Down
3 changes: 0 additions & 3 deletions test/functional/feature_llmq_evo.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ def run_test(self):
self.test_node = self.nodes[0].add_p2p_connection(TestP2PConn())
null_hash = format(0, "064x")

for i in range(len(self.nodes)):
self.connect_nodes(i, 0)

self.nodes[0].sporkupdate("SPORK_17_QUORUM_DKG_ENABLED", 0)
self.nodes[0].sporkupdate("SPORK_2_INSTANTSEND_ENABLED", 1)
self.wait_for_sporks_same()
Expand Down
3 changes: 0 additions & 3 deletions test/functional/feature_llmq_rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ def run_test(self):
# Otherwise only masternode connections will be established between nodes, which won't propagate TXs/blocks
# Usually node0 is the one that does this, but in this test we isolate it multiple times

for i in range(len(self.nodes)):
self.connect_nodes(i, 0)

self.nodes[0].sporkupdate("SPORK_17_QUORUM_DKG_ENABLED", 0)
self.wait_for_sporks_same()

Expand Down
1 change: 0 additions & 1 deletion test/functional/rpc_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ def test_getnetworkinfo(self):

self.log.info('Test extended connections info')
# Connect nodes both ways.
self.connect_nodes(0, 1)
self.connect_nodes(1, 0)

assert_equal(self.nodes[1].getnetworkinfo()['connections'], 2)
Expand Down

0 comments on commit 40f2ab9

Please sign in to comment.