exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 6661d952f10c85b71a61691c56f6708c27da7181
parent a18ba0730061fee6a8e9b12d858bda8e5858c6fe
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 15 Apr 2025 16:08:38 +0200

fix computation of next_threshold: we care about the min, not the max

Diffstat:
Msrc/exchange/taler-exchange-httpd_common_kyc.c | 3---
Msrc/kyclogic/kyclogic_api.c | 2+-
2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_common_kyc.c b/src/exchange/taler-exchange-httpd_common_kyc.c @@ -1325,9 +1325,6 @@ current_rules_cb ( goto cleanup; } - memset (&lch->lcr.next_threshold, - 0, - sizeof (struct TALER_Amount)); qs = TALER_KYCLOGIC_kyc_test_required ( lch->et, lrs, diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c @@ -3505,7 +3505,7 @@ TALER_KYCLOGIC_kyc_test_required ( if (have_threshold) { GNUNET_assert (GNUNET_OK == - TALER_amount_max (next_threshold, + TALER_amount_min (next_threshold, next_threshold, &rule->threshold)); }