mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +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.
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user