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 4ec385d commit a34caec
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 @@ -526,9 +526,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 a34caec

Please sign in to comment.