Skip to content

Commit d89f41c

Browse files
committed
fix feature_llmq_simplepose.py
1 parent 6d6645f commit d89f41c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/functional/feature_llmq_simplepose.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,21 +189,22 @@ def repair_masternodes(self, restart):
189189
addr = self.nodes[0].getnewaddress()
190190
self.nodes[0].sendtoaddress(addr, 0.1)
191191
self.nodes[0].protx('update_service', mn.proTxHash, '127.0.0.1:%d' % p2p_port(mn.node.index), mn.keyOperator, "", addr)
192-
# Make sure this tx "safe" to mine even when InstantSend and ChainLocks are no longer functional
193-
self.bump_mocktime(60 * 10 + 1)
194-
self.nodes[0].generate(1)
195-
assert not self.check_banned(mn)
196-
197192
if restart:
198193
self.stop_node(mn.node.index)
199194
self.start_masternode(mn)
200195
else:
201196
mn.node.setnetworkactive(True)
202197
self.connect_nodes(mn.node.index, 0)
198+
199+
# Make sure protxes are "safe" to mine even when InstantSend and ChainLocks are no longer functional
200+
self.bump_mocktime(60 * 10 + 1)
201+
self.nodes[0].generate(1)
202+
self.wait_until(lambda: all([x.getconnectioncount() > 0 for x in self.nodes]))
203203
self.sync_all()
204204

205205
# Isolate and re-connect all MNs (otherwise there might be open connections with no MNAUTH for MNs which were banned before)
206206
for mn in self.mninfo:
207+
assert not self.check_banned(mn)
207208
mn.node.setnetworkactive(False)
208209
self.wait_until(lambda: mn.node.getconnectioncount() == 0)
209210
mn.node.setnetworkactive(True)

0 commit comments

Comments
 (0)