refactor: replace infinite loop with break to while in forcemninfo

This commit is contained in:
Konstantin Akimov 2024-11-18 16:14:04 +07:00
parent 4ec385d020
commit a34caecdff
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -526,9 +526,7 @@ def force_finish_mnsync(node):
Masternodes won't accept incoming connections while IsSynced is false. Masternodes won't accept incoming connections while IsSynced is false.
Force them to switch to this state to speed things up. Force them to switch to this state to speed things up.
""" """
while True: while not node.mnsync("status")['IsSynced']:
if node.mnsync("status")['IsSynced']:
break
node.mnsync("next") node.mnsync("next")
# Transaction/Block functions # Transaction/Block functions