commit 645b93d3b5d5e35375f812458771c8b41b496bbd
parent d71f9564456fd009a865768f3e992aa27e8b6768
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 15 Apr 2025 11:54:52 +0200
do not nuke next threshold when KYC is currently satisfied
Diffstat:
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_common_kyc.c b/src/exchange/taler-exchange-httpd_common_kyc.c
@@ -1325,6 +1325,9 @@ current_rules_cb (
goto cleanup;
}
+ memset (&lch->lcr.next_threshold,
+ 0,
+ sizeof (struct TALER_Amount));
qs = TALER_KYCLOGIC_kyc_test_required (
lch->et,
lrs,
@@ -1372,9 +1375,6 @@ current_rules_cb (
lch->lcr.kyc.ok = true;
lch->lcr.expiration_date
= TALER_KYCLOGIC_rules_get_expiration (lrs);
- memset (&lch->lcr.next_threshold,
- 0,
- sizeof (struct TALER_Amount));
/* return success! */
lch->async_task
= GNUNET_SCHEDULER_add_now (
diff --git a/src/exchange/taler-exchange-httpd_kyc-wallet.c b/src/exchange/taler-exchange-httpd_kyc-wallet.c
@@ -314,7 +314,6 @@ TEH_handler_kyc_wallet (
bool have_ts
= TALER_amount_is_valid (&krc->next_threshold);
-
/* KYC not required or already satisfied */
return TALER_MHD_REPLY_JSON_PACK (
rc->connection,