gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] branch master updated: clean up debug logi


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: clean up debug logic
Date: Thu, 11 May 2017 11:43:52 +0200

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new f6f4b07  clean up debug logic
f6f4b07 is described below

commit f6f4b07bab75c67c10f85e21b621886db4ee954f
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu May 11 11:43:50 2017 +0200

    clean up debug logic
---
 src/exchange-lib/exchange_api_deposit.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/exchange-lib/exchange_api_deposit.c 
b/src/exchange-lib/exchange_api_deposit.c
index 72f588f..7a3aff1 100644
--- a/src/exchange-lib/exchange_api_deposit.c
+++ b/src/exchange-lib/exchange_api_deposit.c
@@ -318,15 +318,13 @@ verify_signatures (const struct 
TALER_EXCHANGE_DenomPublicKey *dki,
                                   &coin_sig->eddsa_signature,
                                   &coin_pub->eddsa_pub))
   {
+    GNUNET_break (0);
     TALER_LOG_WARNING ("Invalid coin signature on /deposit request\n");
     {
-      char *s;
-      s = TALER_amount_to_string (amount);
-      TALER_LOG_DEBUG ("... amount_with_fee was %s\n", s);
-      GNUNET_free (s);
-      s = TALER_amount_to_string (&dki->fee_deposit);
-      TALER_LOG_DEBUG ("... deposit_fee was %s\n", s);
-      GNUNET_free (s);
+      TALER_LOG_DEBUG ("... amount_with_fee was %s\n",
+                       TALER_amount2s (amount));
+      TALER_LOG_DEBUG ("... deposit_fee was %s\n",
+                       TALER_amount2s (&dki->fee_deposit));
     }
 
     return GNUNET_SYSERR;
@@ -339,12 +337,14 @@ verify_signatures (const struct 
TALER_EXCHANGE_DenomPublicKey *dki,
   if (GNUNET_YES !=
       TALER_test_coin_valid (&coin_info))
   {
+    GNUNET_break (0);
     TALER_LOG_WARNING ("Invalid coin passed for /deposit\n");
     return GNUNET_SYSERR;
   }
   if (0 < TALER_amount_cmp (&dki->fee_deposit,
                             amount))
   {
+    GNUNET_break (0);
     TALER_LOG_WARNING ("Deposit amount smaller than fee\n");
     return GNUNET_SYSERR;
   }

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



reply via email to

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