gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] 56/151: work on select_aml_decisions


From: gnunet
Subject: [taler-exchange] 56/151: work on select_aml_decisions
Date: Tue, 30 Jul 2024 23:37:06 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

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

    work on select_aml_decisions
---
 src/exchange/taler-exchange-httpd_aml-decisions-get.c | 5 +++--
 src/exchangedb/Makefile.am                            | 1 +
 src/exchangedb/plugin_exchangedb_postgres.c           | 3 +++
 src/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
index c3f417165..2f7ab340d 100644
--- 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
index 270171456..dcf5aa5a2 100644
--- 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
index 897d09bef..2b699034d 100644
--- 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
index 09d6499db..7f0fdf0fc 100644
--- 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

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]