From 70cd8f54a2385d927e923ec13b2f582c2acee7f2 Mon Sep 17 00:00:00 2001 From: jokpine Date: Tue, 10 May 2022 20:16:09 +0000 Subject: [PATCH] Send only public tokens in health check request --- webcash/walletclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webcash/walletclient.py b/webcash/walletclient.py index f86dd63..6505bfe 100755 --- a/webcash/walletclient.py +++ b/webcash/walletclient.py @@ -262,7 +262,7 @@ def check_wallet(): batch[item[0]] = item[1] print(f"Checking batch of {len(batch)} public webcash") - health_check_request = [str(x) for x in batch.values()] + health_check_request = [str(SecretWebcash.deserialize(secret_webcash_str).to_public()) for secret_webcash_str in batch.values()] response = webcash_server_request(WEBCASH_ENDPOINT_HEALTH_CHECK, health_check_request) for webcash, result in response["results"].items():