Skip to content

Commit

Permalink
refactor: replace infinite loop with break to while in forcemninfo
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed Nov 21, 2024
1 parent a4e1be7 commit 4043c39
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/functional/test_framework/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,7 @@ def force_finish_mnsync(node):
Masternodes won't accept incoming connections while IsSynced is false.
Force them to switch to this state to speed things up.
"""
while True:
if node.mnsync("status")['IsSynced']:
break
while not node.mnsync("status")['IsSynced']:
node.mnsync("next")

# Transaction/Block functions
Expand Down

0 comments on commit 4043c39

Please sign in to comment.