diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-12-31 01:15:40 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-12-31 01:15:40 +0100 |
commit | 509141b6002d49db5a92b6d573cc7cca237fc1f0 (patch) | |
tree | 0d743c2179c27452b51bfa8091fe726c9c7d4c99 /src/exchangedb/pg_select_satisfied_kyc_processes.c | |
parent | b1d9745545ff528729b53312947ba768c336a1d8 (diff) | |
download | exchange-509141b6002d49db5a92b6d573cc7cca237fc1f0.tar.xz |
-finish implementation of new DB functions
Diffstat (limited to 'src/exchangedb/pg_select_satisfied_kyc_processes.c')
-rw-r--r-- | src/exchangedb/pg_select_satisfied_kyc_processes.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/exchangedb/pg_select_satisfied_kyc_processes.c b/src/exchangedb/pg_select_satisfied_kyc_processes.c index f21915813..e0d884ef1 100644 --- a/src/exchangedb/pg_select_satisfied_kyc_processes.c +++ b/src/exchangedb/pg_select_satisfied_kyc_processes.c @@ -26,17 +26,8 @@ #include "pg_helper.h" - - - - - - - - - /** - * Closure for #get_wire_fees_cb(). + * Closure for #get_legitimizations_cb(). */ struct GetLegitimizationsContext { @@ -105,7 +96,6 @@ get_legitimizations_cb (void *cls, } - enum GNUNET_DB_QueryStatus TEH_PG_select_satisfied_kyc_processes ( void *cls, @@ -128,7 +118,7 @@ TEH_PG_select_satisfied_kyc_processes ( .status = GNUNET_OK }; enum GNUNET_DB_QueryStatus qs; - /* Used in #postgres_select_satisfied_kyc_processes() */ + PREPARE (pg, "get_satisfied_legitimizations", "SELECT " @@ -136,7 +126,6 @@ TEH_PG_select_satisfied_kyc_processes ( " FROM legitimization_processes" " WHERE h_payto=$1" " AND expiration_time>=$2;"); - qs = GNUNET_PQ_eval_prepared_multi_select ( pg->conn, "get_satisfied_legitimizations", |