exchange

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

commit 6f1e7bd8414748bdbe69b6ffb81bc3f37d6ca3ba
parent d52c198eb8653fa0aa684003e6af9ffeb9ec88e5
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Fri,  2 May 2025 12:48:39 +0200

logging for debugging AML/KYC issues

Diffstat:
Msrc/exchangedb/exchange_do_insert_aml_decision.sql | 2++
Msrc/exchangedb/pg_select_aml_decisions.c | 7++++++-
Msrc/kyclogic/taler-exchange-helper-measure-inform-investigate | 1+
3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/exchangedb/exchange_do_insert_aml_decision.sql b/src/exchangedb/exchange_do_insert_aml_decision.sql @@ -163,6 +163,8 @@ THEN -- end if for where we had in_jmeasures END IF; +RAISE NOTICE 'marking legi measures of % as finished except for %', my_access_token, out_legitimization_measure_serial_id; + -- AML decision: mark all other active measures finished! UPDATE legitimization_measures SET is_finished=TRUE diff --git a/src/exchangedb/pg_select_aml_decisions.c b/src/exchangedb/pg_select_aml_decisions.c @@ -120,7 +120,12 @@ handle_aml_result (void *cls, } if (GNUNET_TIME_absolute_is_past (expiration_time)) is_active = false; - + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Returning AML decisions for `%s' (%s)\n", + payto, + TALER_payto_is_wallet (payto) + ? "wallet" + : "account"); ctx->cb (ctx->cb_cls, rowid, justification, diff --git a/src/kyclogic/taler-exchange-helper-measure-inform-investigate b/src/kyclogic/taler-exchange-helper-measure-inform-investigate @@ -89,6 +89,7 @@ CURRENT_RULES=$(jq '.current_rules') # FIXME: not generic, figure out how to do this nicely regardless of # what rule we are at. +# FIXME: #9854 NEW_RULES=$(echo "$CURRENT_RULES" | jq '(.rules[] |= if (.rule_name=="deposit-limit-zero") then .measures=["form-info-investigation"] else . end)')