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:59 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-05-12 15:10:59 +0200
commit9f1f069cea3775be68bbdbbd5e44fd4c86eb9bf6 (patch)
tree29cfdf610e1cd8cf15fb115f92c9b7daded24254 /src/exchange/taler-exchange-httpd_batch-withdraw.c
parent4833234df63d7da774299b336adb925e700bd4b4 (diff)
parenta04425df340e9bef067cbf64809ced5597576dfc (diff)
Merge branch 'age-withdraw' of ssh://git.kesim.org/taler/exchange into age-withdraw
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);