gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-exchange] 01/05: eliminate redundant hash call


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 01/05: eliminate redundant hash call
Date: Thu, 09 Aug 2018 22:30:48 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

commit 68848aaf5cf0c56feb5af6b6823b184fc049833e
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Aug 9 21:41:37 2018 +0200

    eliminate redundant hash call
---
 src/exchange/taler-exchange-httpd_reserve_withdraw.c | 8 ++------
 1 file 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 870fd43..837d603 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,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]