aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-08-19 18:43:17 +0200
committerChristian Grothoff <christian@grothoff.org>2024-08-19 18:43:23 +0200
commit78d8f5f338c22e11c1d94b484657c86adbed879b (patch)
tree40214a956f5a9faf50101346797832035290404d
parent46bae8ba045793bc5a27e2655a8bc390763f6e90 (diff)
add code to call insert_pending_deposit
m---------contrib/wallet-core0
m---------doc/prebuilt0
-rw-r--r--src/auditor/taler-helper-auditor-wire-debit.c19
3 files changed, 11 insertions, 8 deletions
diff --git a/contrib/wallet-core b/contrib/wallet-core
-Subproject 8b667974a7c55fe542be8a58b0a9f20e3d62d77
+Subproject 5934e007f637bd9834a811e67c0a030d7a59f2c
diff --git a/doc/prebuilt b/doc/prebuilt
-Subproject ab2e09b5a3711ab04f1f77f79158cc006cab319
+Subproject c1a885ac1f9d9b2fdef19a976bed01dab4f7d85
diff --git a/src/auditor/taler-helper-auditor-wire-debit.c b/src/auditor/taler-helper-auditor-wire-debit.c
index f220467f0..60bca32be 100644
--- a/src/auditor/taler-helper-auditor-wire-debit.c
+++ b/src/auditor/taler-helper-auditor-wire-debit.c
@@ -731,11 +731,13 @@ struct ReasonDetail
/**
* Account properties, possibly NULL.
+ * FIXME: not used!
*/
json_t *properties;
/**
* Account KYC rules.
+ * FIXME: not used!
*/
json_t *jrules;
@@ -823,9 +825,7 @@ generate_report (void *cls,
void *value)
{
struct ReasonDetail *rd = value;
- // struct TALER_AUDITORDB_KycLag kycl;
- // struct TALER_AUDITORDB_AmlLag amllag;
- // struct TALER_AUDITORDB_Lag lag;
+
/* For now, we simplify and only check that the
amount was tiny */
@@ -839,14 +839,18 @@ generate_report (void *cls,
TALER_ARL_amount_add (&TALER_ARL_USE_AB (total_amount_lag),
&TALER_ARL_USE_AB (total_amount_lag),
&rd->total_amount);
- // TODO add kyc lag db entry
-#if FIXME
{
enum GNUNET_DB_QueryStatus qs;
+ struct TALER_PaytoHashP h_payto;
- qs = TALER_ARL_adb->insert_reserve_balance_insufficient_inconsistency (
+ TALER_payto_hash (rd->payto_uri,
+ &h_payto);
+ qs = TALER_ARL_adb->insert_pending_deposit (
TALER_ARL_adb->cls,
- &rbiil);
+ rd->batch_deposit_serial_id,
+ &h_payto,
+ &rd->total_amount,
+ rd->deadline);
if (qs < 0)
{
global_qs = qs;
@@ -854,7 +858,6 @@ generate_report (void *cls,
return GNUNET_SYSERR;
}
}
-#endif
#if TO_BE_REMOVED_DEAD_CODE
TALER_ARL_report (report_kyc_lags,
GNUNET_JSON_PACK (