diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py index 54578d6cce..59a4d663cc 100644 --- a/test/functional/test_framework/util.py +++ b/test/functional/test_framework/util.py @@ -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