exchange

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

commit 10d8da9c34cf1a41d9a4cfa4b040eed945b9e944
parent e9485a1505f9d863f1307f66fddf5a2eb2e60faf
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 23 Jun 2024 00:36:31 +0200

work on select_aml_decisions

Diffstat:
Msrc/exchange/taler-exchange-httpd_aml-decisions-get.c | 5+++--
Msrc/exchangedb/Makefile.am | 1+
Msrc/exchangedb/plugin_exchangedb_postgres.c | 3+++
Msrc/include/taler_exchangedb_plugin.h | 2+-
4 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_aml-decisions-get.c b/src/exchange/taler-exchange-httpd_aml-decisions-get.c @@ -75,8 +75,9 @@ record_cb ( h_payto), GNUNET_JSON_pack_int64 ("rowid", row_id), - GNUNET_JSON_pack_string ("justification", - justification), + GNUNET_JSON_pack_allow_null ( + GNUNET_JSON_pack_string ("justification", + justification)), GNUNET_JSON_pack_timestamp ("decision_time", decision_time), GNUNET_JSON_pack_allow_null ( diff --git a/src/exchangedb/Makefile.am b/src/exchangedb/Makefile.am @@ -158,6 +158,7 @@ libtaler_plugin_exchangedb_postgres_la_SOURCES = \ pg_get_known_coin.h pg_get_known_coin.c \ pg_get_signature_for_known_coin.h pg_get_signature_for_known_coin.c \ pg_get_coin_denomination.h pg_get_coin_denomination.c \ + pg_select_aml_decisions.h pg_select_aml_decisions.c \ pg_have_deposit2.h pg_have_deposit2.c \ pg_aggregate.h pg_aggregate.c \ pg_create_aggregation_transient.h pg_create_aggregation_transient.c \ diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c @@ -33,6 +33,7 @@ #include "taler_util.h" #include "taler_json_lib.h" #include "taler_exchangedb_plugin.h" +#include "pg_select_aml_decisions.h" #include "plugin_exchangedb_common.h" #include "pg_delete_aggregation_transient.h" #include "pg_get_link_data.h" @@ -725,6 +726,8 @@ libtaler_plugin_exchangedb_postgres_init (void *cls) = &TEH_PG_get_wire_accounts; plugin->get_wire_fees = &TEH_PG_get_wire_fees; + plugin->select_aml_decisions + = &TEH_PG_select_aml_decisions; plugin->insert_signkey_revocation = &TEH_PG_insert_signkey_revocation; plugin->lookup_signkey_revocation diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h @@ -3514,7 +3514,7 @@ typedef void * * @param cls closure * @param row_id current row in legitimization outcomes table - * @param justification human-readable reason for the decision + * @param justification human-readable reason for the decision, NULL if none is available * @param h_payto account for which the attribute data is stored * @param decision_time when was the decision taken * @param expiration_time when will the rules expire