Skip to content

Commit

Permalink
Send only public tokens in health check request
Browse files Browse the repository at this point in the history
  • Loading branch information
jokpine committed May 10, 2022
1 parent 4718ffa commit 70cd8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webcash/walletclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 70cd8f5

Please sign in to comment.