summaryrefslogtreecommitdiff
path: root/src/exchange
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-07 23:38:30 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-07 23:38:30 +0100
commit17a30cbd708cb2427fd3a7533fc9945898e2c34c (patch)
treec6886d8feff8697265a850ec15efe98134b6b66a /src/exchange
parente27ff05e63cae9075b8b9a88cbd7dd10d8c39adc (diff)
downloadexchange-17a30cbd708cb2427fd3a7533fc9945898e2c34c.tar.gz
exchange-17a30cbd708cb2427fd3a7533fc9945898e2c34c.tar.bz2
exchange-17a30cbd708cb2427fd3a7533fc9945898e2c34c.zip
-cleanups
Diffstat (limited to 'src/exchange')
-rw-r--r--src/exchange/taler-exchange-httpd_melt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_melt.c b/src/exchange/taler-exchange-httpd_melt.c
index 54f1385d7..021b629b3 100644
--- a/src/exchange/taler-exchange-httpd_melt.c
+++ b/src/exchange/taler-exchange-httpd_melt.c
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- Copyright (C) 2014-2021 Taler Systems SA
+ Copyright (C) 2014-2022 Taler Systems SA
TALER is free software; you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License as published by the Free Software
@@ -183,6 +183,7 @@ melt_transaction (void *cls,
}
if (! balance_ok)
{
+ GNUNET_break_op (0);
TEH_plugin->rollback (TEH_plugin->cls);
*mhd_ret
= TEH_RESPONSE_reply_coin_insufficient_funds (
@@ -299,6 +300,9 @@ check_melt_valid (struct MHD_Connection *connection,
rmc->coin_refresh_fee = dk->meta.fee_refresh;
rmc->coin_value = dk->meta.value;
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Melted coin's denomination is worth %s\n",
+ TALER_amount2s (&dk->meta.value));
/* sanity-check that "total melt amount > melt fee" */
if (0 <
TALER_amount_cmp (&rmc->coin_refresh_fee,