mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
test: don't attempt to reconnect already connected nodes
This commit is contained in:
parent
4a0fc8b69e
commit
40f2ab906c
@ -53,9 +53,6 @@ class DIP3V19Test(DashTestFramework):
|
||||
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()
|
||||
|
||||
|
@ -26,7 +26,7 @@ class LLMQChainLocksTest(DashTestFramework):
|
||||
# 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)
|
||||
|
@ -57,9 +57,6 @@ class LLMQEvoNodesTest(DashTestFramework):
|
||||
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()
|
||||
|
@ -64,9 +64,6 @@ class LLMQQuorumRotationTest(DashTestFramework):
|
||||
# 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()
|
||||
|
||||
|
@ -213,7 +213,6 @@ class NetTest(DashTestFramework):
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user