From a04425df340e9bef067cbf64809ced5597576dfc Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Fri, 12 May 2023 15:10:23 +0200 Subject: [age-withdraw] WIP: change schema to use new support for array types, 11/n --- src/exchange/taler-exchange-httpd_batch-withdraw.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/exchange/taler-exchange-httpd_batch-withdraw.c') 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); -- cgit v1.2.3