aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-08-09 21:41:37 +0200
committerChristian Grothoff <christian@grothoff.org>2018-08-09 21:41:37 +0200
commit68848aaf5cf0c56feb5af6b6823b184fc049833e (patch)
tree7e463e5928b7104fe55ede0472c98f4e23855a08 /src
parent9384234555cc7a81d05d1e561f90762497db722d (diff)
eliminate redundant hash call
Diffstat (limited to 'src')
-rw-r--r--src/exchange/taler-exchange-httpd_reserve_withdraw.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/exchange/taler-exchange-httpd_reserve_withdraw.c b/src/exchange/taler-exchange-httpd_reserve_withdraw.c
index 870fd4330..837d60375 100644
--- a/src/exchange/taler-exchange-httpd_reserve_withdraw.c
+++ b/src/exchange/taler-exchange-httpd_reserve_withdraw.c
@@ -171,14 +171,10 @@ withdraw_transaction (void *cls,
int res;
enum GNUNET_DB_QueryStatus qs;
struct TALER_DenominationSignature denom_sig;
- struct GNUNET_HashCode h_blind;
- GNUNET_CRYPTO_hash (wc->blinded_msg,
- wc->blinded_msg_len,
- &h_blind);
qs = TEH_plugin->get_withdraw_info (TEH_plugin->cls,
session,
- &h_blind,
+ &wc->wsrd.h_coin_envelope,
&wc->collectable);
if (0 > qs)
{
@@ -348,7 +344,7 @@ withdraw_transaction (void *cls,
wc->collectable.amount_with_fee = wc->amount_required;
wc->collectable.withdraw_fee = fee_withdraw;
wc->collectable.reserve_pub = wc->wsrd.reserve_pub;
- wc->collectable.h_coin_envelope = h_blind;
+ wc->collectable.h_coin_envelope = wc->wsrd.h_coin_envelope;
wc->collectable.reserve_sig = wc->signature;
qs = TEH_plugin->insert_withdraw_info (TEH_plugin->cls,
session,