mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
refactor: replace infinite loop with break to while in forcemninfo
This commit is contained in:
parent
4ec385d020
commit
a34caecdff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user