aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_withdraw.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-23 21:12:31 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-23 21:12:31 +0200
commit054f2ab51c56a0dbb95babd5de97a7148e5af232 (patch)
tree8e95fe6cf03935d1234ae114f6e39fe782f24262 /src/testing/testing_api_cmd_withdraw.c
parent656b521a83cd66fec2021298d0ba8cf668f2741b (diff)
downloadexchange-054f2ab51c56a0dbb95babd5de97a7148e5af232.tar.xz
-implement batch withdraw client-side logic
Diffstat (limited to 'src/testing/testing_api_cmd_withdraw.c')
-rw-r--r--src/testing/testing_api_cmd_withdraw.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/testing/testing_api_cmd_withdraw.c b/src/testing/testing_api_cmd_withdraw.c
index de862f91a..6f8b3a638 100644
--- a/src/testing/testing_api_cmd_withdraw.c
+++ b/src/testing/testing_api_cmd_withdraw.c
@@ -433,13 +433,18 @@ withdraw_run (void *cls,
&ws->amount,
&ws->pk->fees.withdraw));
ws->reserve_history.details.withdraw.fee = ws->pk->fees.withdraw;
- ws->wsh = TALER_EXCHANGE_withdraw (is->exchange,
- ws->pk,
- rp,
- &ws->ps,
- ws->h_age_commitment,
- &reserve_withdraw_cb,
- ws);
+ {
+ struct TALER_EXCHANGE_WithdrawCoinInput wci = {
+ .pk = ws->pk,
+ .ps = &ws->ps,
+ .ach = ws->h_age_commitment
+ };
+ ws->wsh = TALER_EXCHANGE_withdraw (is->exchange,
+ rp,
+ &wci,
+ &reserve_withdraw_cb,
+ ws);
+ }
if (NULL == ws->wsh)
{
GNUNET_break (0);