summaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_refresh.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-08-09 19:31:35 +0200
committerChristian Grothoff <christian@grothoff.org>2015-08-09 19:31:35 +0200
commit2daaeee447be052625f0389996e639fb40191bf2 (patch)
treea8b514f38bbd7613c424e6260f8af6d54a8ca0cb /src/mint/taler-mint-httpd_refresh.c
parentd7bdcc6e6728d9eab43a5a9bc205830bcee55a70 (diff)
downloadexchange-2daaeee447be052625f0389996e639fb40191bf2.tar.gz
exchange-2daaeee447be052625f0389996e639fb40191bf2.tar.bz2
exchange-2daaeee447be052625f0389996e639fb40191bf2.zip
fix direction of cmp check, log session hash for diagnostics
Diffstat (limited to 'src/mint/taler-mint-httpd_refresh.c')
-rw-r--r--src/mint/taler-mint-httpd_refresh.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mint/taler-mint-httpd_refresh.c b/src/mint/taler-mint-httpd_refresh.c
index c6b79c47a..eb205ed1d 100644
--- a/src/mint/taler-mint-httpd_refresh.c
+++ b/src/mint/taler-mint-httpd_refresh.c
@@ -252,13 +252,17 @@ verify_coin_public_info (struct MHD_Connection *connection,
body.purpose.size = htonl (sizeof (struct TALER_RefreshMeltCoinAffirmationPS));
body.purpose.purpose = htonl (TALER_SIGNATURE_WALLET_COIN_MELT);
body.session_hash = *session_hash;
+ fprintf (stderr,
+ "Verifying hash %s\n",
+ GNUNET_h2s (session_hash));
+
TALER_amount_hton (&body.amount_with_fee,
&melt_detail->melt_amount_with_fee);
TALER_amount_hton (&body.melt_fee,
&fee_refresh);
body.coin_pub = melt_detail->coin_info.coin_pub;
if (TALER_amount_cmp (&fee_refresh,
- &melt_detail->melt_amount_with_fee) < 0)
+ &melt_detail->melt_amount_with_fee) > 0)
{
GNUNET_break_op (0);
TMH_KS_release (key_state);