diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-05-23 21:12:31 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-05-23 21:12:31 +0200 |
commit | 054f2ab51c56a0dbb95babd5de97a7148e5af232 (patch) | |
tree | 8e95fe6cf03935d1234ae114f6e39fe782f24262 /src/testing | |
parent | 656b521a83cd66fec2021298d0ba8cf668f2741b (diff) | |
download | exchange-054f2ab51c56a0dbb95babd5de97a7148e5af232.tar.xz |
-implement batch withdraw client-side logic
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/testing_api_cmd_withdraw.c | 19 |
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); |