[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.
- [taler-exchange] 86/151: start with wire-gateway API v1 implementation, (continued)
- [taler-exchange] 86/151: start with wire-gateway API v1 implementation, gnunet, 2024/07/30
- [taler-exchange] 41/151: work all over the place, gnunet, 2024/07/30
- [taler-exchange] 83/151: seems done, gnunet, 2024/07/30
- [taler-exchange] 88/151: implement wad_in_insert, gnunet, 2024/07/30
- [taler-exchange] 103/151: add logic to parse new_check field, gnunet, 2024/07/30
- [taler-exchange] 66/151: implement get_kyc_statistics, gnunet, 2024/07/30
- [taler-exchange] 109/151: -diagnostic notes, gnunet, 2024/07/30
- [taler-exchange] 20/151: kyclogic API planning, gnunet, 2024/07/30
- [taler-exchange] 102/151: introduce default check, gnunet, 2024/07/30
- [taler-exchange] 96/151: -SQL fixes, gnunet, 2024/07/30
- [taler-exchange] 56/151: work on select_aml_decisions,
gnunet <=
- [taler-exchange] 52/151: drop functions after use, gnunet, 2024/07/30
- [taler-exchange] 85/151: set timeout also for curl request, gnunet, 2024/07/30
- [taler-exchange] 46/151: -minor testing fixups, gnunet, 2024/07/30
- [taler-exchange] 55/151: finish request parsing for aml-decisions-get, gnunet, 2024/07/30
- [taler-exchange] 63/151: complete GET /aml//measures endpoint, gnunet, 2024/07/30
- [taler-exchange] 37/151: DCE, gnunet, 2024/07/30
- [taler-exchange] 81/151: ign, gnunet, 2024/07/30
- [taler-exchange] 92/151: implement new admin kycauth incoming endpoint in fakebank, gnunet, 2024/07/30
- [taler-exchange] 31/151: fix testing FTBFS, gnunet, 2024/07/30
- [taler-exchange] 54/151: move ID computation into libtalerutil, gnunet, 2024/07/30