diff --git a/test/functional/feature_llmq_connections.py b/test/functional/feature_llmq_connections.py index 9b2fb076708c02..3feca0e0239bcb 100755 --- a/test/functional/feature_llmq_connections.py +++ b/test/functional/feature_llmq_connections.py @@ -71,6 +71,21 @@ def run_test(self): self.check_reconnects(4) + self.nodes[0].sporkupdate("SPORK_23_QUORUM_POSE", 4070908800) + self.wait_for_sporks_same() + + self.activate_v19(expected_activation_height=900) + self.log.info("Activated v19 at height:" + str(self.nodes[0].getblockcount())) + self.move_to_next_cycle() + self.log.info("Cycle H height:" + str(self.nodes[0].getblockcount())) + self.move_to_next_cycle() + self.log.info("Cycle H+C height:" + str(self.nodes[0].getblockcount())) + self.move_to_next_cycle() + self.log.info("Cycle H+2C height:" + str(self.nodes[0].getblockcount())) + self.mine_cycle_quorum(llmq_type_name='llmq_test_dip0024', llmq_type=103) + + # Since we IS quorums are mined only using dip24 (rotation) we need to enable rotation, and continue tests on llmq_test_dip0024 for connections. + self.log.info("check that old masternode conections are dropped") removed = False for mn in self.mninfo: @@ -78,7 +93,7 @@ def run_test(self): try: with mn.node.assert_debug_log(['removing masternodes quorum connections']): with mn.node.assert_debug_log(['keeping mn quorum connections']): - self.mine_quorum() + self.mine_cycle_quorum(llmq_type_name='llmq_test_dip0024', llmq_type=103) mn.node.mockscheduler(60) # we check for old connections via the scheduler every 60 seconds removed = True except: @@ -87,19 +102,6 @@ def run_test(self): break assert removed # no way we removed none - self.nodes[0].sporkupdate("SPORK_23_QUORUM_POSE", 4070908800) - self.wait_for_sporks_same() - - self.activate_v19(expected_activation_height=900) - self.log.info("Activated v19 at height:" + str(self.nodes[0].getblockcount())) - self.move_to_next_cycle() - self.log.info("Cycle H height:" + str(self.nodes[0].getblockcount())) - self.move_to_next_cycle() - self.log.info("Cycle H+C height:" + str(self.nodes[0].getblockcount())) - self.move_to_next_cycle() - self.log.info("Cycle H+2C height:" + str(self.nodes[0].getblockcount())) - self.mine_cycle_quorum(llmq_type_name='llmq_test_dip0024', llmq_type=103) - self.log.info("check that inter-quorum masternode conections are added") added = False for mn in self.mninfo: