summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_refresh.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-13 12:44:09 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-13 12:44:09 +0100
commit9b8c350d4dc38256fe746ef31c480bc4f50ac4c8 (patch)
treef8dcdd0c0b76d2ee9e91865f8cc7718131800354 /src/testing/testing_api_cmd_refresh.c
parentf6ecf7458ab4a0e23233439ca6c878fd93921083 (diff)
downloadexchange-9b8c350d4dc38256fe746ef31c480bc4f50ac4c8.tar.gz
exchange-9b8c350d4dc38256fe746ef31c480bc4f50ac4c8.tar.bz2
exchange-9b8c350d4dc38256fe746ef31c480bc4f50ac4c8.zip
-remove redundancies in the refresh-melt computation and fix uninitialized bks return value
Diffstat (limited to 'src/testing/testing_api_cmd_refresh.c')
-rw-r--r--src/testing/testing_api_cmd_refresh.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/testing/testing_api_cmd_refresh.c b/src/testing/testing_api_cmd_refresh.c
index 94fade945..de3efd13b 100644
--- a/src/testing/testing_api_cmd_refresh.c
+++ b/src/testing/testing_api_cmd_refresh.c
@@ -422,9 +422,9 @@ reveal_cb (void *cls,
const struct TALER_EXCHANGE_RevealedCoinInfo *coin
= &rr->details.success.coins[i];
struct TALER_TESTING_FreshCoinData *fc = &rrs->fresh_coins[i];
- const union TALER_DenominationBlindingKeyP *bks;
rrs->psa[i] = coin->ps;
+ fc->blinding_key = coin->bks;
if (GNUNET_OK !=
TALER_TESTING_get_trait_denom_pub (melt_cmd,
i,
@@ -434,17 +434,8 @@ reveal_cb (void *cls,
TALER_TESTING_interpreter_fail (rrs->is);
return;
}
- if (GNUNET_OK !=
- TALER_TESTING_get_trait_blinding_key (melt_cmd,
- i,
- &bks))
- {
- GNUNET_break (0);
- TALER_TESTING_interpreter_fail (rrs->is);
- return;
- }
fc->coin_priv = coin->coin_priv;
- fc->blinding_key = *bks;
+
TALER_denom_sig_deep_copy (&fc->sig,
&coin->sig);
}
@@ -1216,8 +1207,6 @@ melt_traits (void *cls,
&rms->fresh_pks[index]),
TALER_TESTING_make_trait_coin_priv (0,
rms->melt_priv),
- TALER_TESTING_make_trait_blinding_key (index,
- &rms->mbds[index].bks),
TALER_TESTING_make_trait_exchange_wd_value (index,
&rms->mbds[index].alg_value),
TALER_TESTING_make_trait_refresh_secret (&rms->rms),