commit b6358e5966c1838fed8c44b1440e30b00f285b1a
parent 3f26929ce39b61deeb2a5d37a52cba2ddbbfa514
Author: Özgür Kesim <oec@codeblau.de>
Date: Wed, 7 May 2025 09:38:37 +0200
[testing] fix reuse_key logic in withdraw test
Diffstat:
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/testing/testing_api_cmd_withdraw.c b/src/testing/testing_api_cmd_withdraw.c
@@ -405,10 +405,6 @@ withdraw_run (void *cls,
&ws->reserve_pub);
- TALER_withdraw_master_seed_setup_random (&ws->seed);
- TALER_cs_withdraw_seed_to_blinding_seed (&ws->seed,
- &ws->blinding_seed);
-
if (NULL != ws->reuse_coin_key_ref)
{
const struct TALER_WithdrawMasterSeedP *seed;
@@ -430,6 +426,12 @@ withdraw_run (void *cls,
&seed));
ws->seed = *seed;
}
+ else
+ {
+ TALER_withdraw_master_seed_setup_random (&ws->seed);
+ }
+ TALER_cs_withdraw_seed_to_blinding_seed (&ws->seed,
+ &ws->blinding_seed);
if (NULL == ws->pk)
{