diff --git a/test/functional/feature_llmq_simplepose.py b/test/functional/feature_llmq_simplepose.py index a28a89e566f7..e5b9f2882a91 100755 --- a/test/functional/feature_llmq_simplepose.py +++ b/test/functional/feature_llmq_simplepose.py @@ -189,21 +189,24 @@ def repair_masternodes(self, restart): addr = self.nodes[0].getnewaddress() self.nodes[0].sendtoaddress(addr, 0.1) self.nodes[0].protx('update_service', mn.proTxHash, '127.0.0.1:%d' % p2p_port(mn.node.index), mn.keyOperator, "", addr) - # Make sure this tx "safe" to mine even when InstantSend and ChainLocks are no longer functional - self.bump_mocktime(60 * 10 + 1) - self.nodes[0].generate(1) - assert not self.check_banned(mn) - if restart: self.stop_node(mn.node.index) self.start_masternode(mn) else: mn.node.setnetworkactive(True) self.connect_nodes(mn.node.index, 0) + + # syncing blocks only since node 0 has txes waiting to be mined + self.sync_blocks() + + # Make sure protxes are "safe" to mine even when InstantSend and ChainLocks are no longer functional + self.bump_mocktime(60 * 10 + 1) + self.nodes[0].generate(1) self.sync_all() # Isolate and re-connect all MNs (otherwise there might be open connections with no MNAUTH for MNs which were banned before) for mn in self.mninfo: + assert not self.check_banned(mn) mn.node.setnetworkactive(False) self.wait_until(lambda: mn.node.getconnectioncount() == 0) mn.node.setnetworkactive(True)