diff options
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 |
commit | 9f1f069cea3775be68bbdbbd5e44fd4c86eb9bf6 (patch) | |
tree | 29cfdf610e1cd8cf15fb115f92c9b7daded24254 /src/exchange/taler-exchange-httpd_batch-withdraw.c | |
parent | 4833234df63d7da774299b336adb925e700bd4b4 (diff) | |
parent | a04425df340e9bef067cbf64809ced5597576dfc (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.c | 5 |
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); |