aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_batch_withdraw.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-07-20 18:15:33 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-07-20 18:15:33 +0200
commitdb9fb04edcdafd0052a5652084ede7ca75885cef (patch)
tree0dce53e9324ce5d2bba77fd00ecda280d4a1e3f3 /src/testing/testing_api_cmd_batch_withdraw.c
parent2f8e3d31e7872e696e14ead5b264ada4e2500dde (diff)
parent430bb0624ae60e78c3e9855bd7827cc407471871 (diff)
Merge branch 'age-withdraw', after implementing testing-commands
Diffstat (limited to 'src/testing/testing_api_cmd_batch_withdraw.c')
-rw-r--r--src/testing/testing_api_cmd_batch_withdraw.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/testing/testing_api_cmd_batch_withdraw.c b/src/testing/testing_api_cmd_batch_withdraw.c
index da43a9aa..41c74c3e 100644
--- a/src/testing/testing_api_cmd_batch_withdraw.c
+++ b/src/testing/testing_api_cmd_batch_withdraw.c
@@ -23,6 +23,7 @@
* @author Marcello Stanisci
*/
#include "platform.h"
+#include "taler_exchange_service.h"
#include "taler_json_lib.h"
#include <microhttpd.h>
#include <gnunet/gnunet_curl_lib.h>
@@ -217,7 +218,7 @@ reserve_batch_withdraw_cb (void *cls,
/* nothing to check */
break;
case MHD_HTTP_CONFLICT:
- /* nothing to check */
+ /* TODO[oec]: Check if age-requirement is the reason */
break;
case MHD_HTTP_GONE:
/* theoretically could check that the key was actually */
@@ -250,6 +251,7 @@ batch_withdraw_run (void *cls,
struct TALER_TESTING_Interpreter *is)
{
struct BatchWithdrawState *ws = cls;
+ const struct TALER_EXCHANGE_Keys *keys = TALER_TESTING_get_keys (is);
const struct TALER_ReservePrivateKeyP *rp;
const struct TALER_TESTING_Command *create_reserve;
const struct TALER_EXCHANGE_DenomPublicKey *dpk;
@@ -292,7 +294,7 @@ batch_withdraw_run (void *cls,
struct TALER_EXCHANGE_WithdrawCoinInput *wci = &wcis[i];
TALER_planchet_master_setup_random (&cs->ps);
- dpk = TALER_TESTING_find_pk (TALER_TESTING_get_keys (is),
+ dpk = TALER_TESTING_find_pk (keys,
&cs->amount,
ws->age > 0);
if (NULL == dpk)
@@ -321,7 +323,7 @@ batch_withdraw_run (void *cls,
ws->wsh = TALER_EXCHANGE_batch_withdraw (
TALER_TESTING_interpreter_get_context (is),
TALER_TESTING_get_exchange_url (is),
- TALER_TESTING_get_keys (is),
+ keys,
rp,
ws->num_coins,
wcis,