aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_batch-withdraw.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-05-12 15:10:23 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-05-12 15:10:23 +0200
commita04425df340e9bef067cbf64809ced5597576dfc (patch)
tree1574dd5e1b5ff9095a0479d0e74ad2afe00269e8 /src/exchange/taler-exchange-httpd_batch-withdraw.c
parent5ee567d1bacf1422745bb0867a1022fd695bc5dc (diff)
[age-withdraw] WIP: change schema to use new support for array types, 11/n
Diffstat (limited to 'src/exchange/taler-exchange-httpd_batch-withdraw.c')
-rw-r--r--src/exchange/taler-exchange-httpd_batch-withdraw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_batch-withdraw.c b/src/exchange/taler-exchange-httpd_batch-withdraw.c
index c3065e1d..d97a5f0a 100644
--- a/src/exchange/taler-exchange-httpd_batch-withdraw.c
+++ b/src/exchange/taler-exchange-httpd_batch-withdraw.c
@@ -466,10 +466,12 @@ batch_withdraw_transaction (void *cls,
return qs;
}
wc->kyc.ok = true;
+
qs = TEH_plugin->do_batch_withdraw (TEH_plugin->cls,
wc->now,
wc->reserve_pub,
&wc->batch_total,
+ /* TODO[oec]: add parameter for maximum age and [out]parameter for required age */
&found,
&balance_ok,
&ruuid);
@@ -493,6 +495,9 @@ batch_withdraw_transaction (void *cls,
NULL);
return GNUNET_DB_STATUS_HARD_ERROR;
}
+
+ /* TODO[oec]: add error handling for age restriction requirements */
+
if (! balance_ok)
{
TEH_plugin->rollback (TEH_plugin->cls);