Skip to content

Commit

Permalink
Merge pull request #31 from jokpine/no-private-tokens-in-health-check
Browse files Browse the repository at this point in the history
Send only public tokens in health check request
  • Loading branch information
kanzure authored May 10, 2022
2 parents 4718ffa + 70cd8f5 commit c59b8f7
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 c59b8f7

Please sign in to comment.