diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py --- a/test/functional/test_framework/test_framework.py +++ b/test/functional/test_framework/test_framework.py @@ -587,8 +587,14 @@ rpc_connections = nodes or self.nodes timeout = int(timeout * self.options.timeout_factor) stop_time = time.time() + timeout + + def format_ids(id_list): + """Convert ProodIDs to hex strings for easier debugging""" + return list(f"{i:064x}" for i in id_list) + while time.time() <= stop_time: - nodes_proofs = [set(get_proof_ids(r)) for r in rpc_connections] + nodes_proofs = [ + set(format_ids(get_proof_ids(r))) for r in rpc_connections] if nodes_proofs.count(nodes_proofs[0]) == len(rpc_connections): return # Check that each peer has at least one connection