summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_batch-deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-09-10 20:00:50 +0200
committerChristian Grothoff <christian@grothoff.org>2023-09-10 20:00:50 +0200
commite967208e8c01af28e2ebde34c8deea326f09e5e3 (patch)
tree30d651095f1a413b0442edeea4c3ea6572201686 /src/exchange/taler-exchange-httpd_batch-deposit.c
parent852c46668f1c9f766de9473c50e787e32a0f8697 (diff)
downloadexchange-e967208e8c01af28e2ebde34c8deea326f09e5e3.tar.gz
exchange-e967208e8c01af28e2ebde34c8deea326f09e5e3.tar.bz2
exchange-e967208e8c01af28e2ebde34c8deea326f09e5e3.zip
-fix typo
Diffstat (limited to 'src/exchange/taler-exchange-httpd_batch-deposit.c')
-rw-r--r--src/exchange/taler-exchange-httpd_batch-deposit.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_batch-deposit.c b/src/exchange/taler-exchange-httpd_batch-deposit.c
index a5283d205..ca206d23c 100644
--- a/src/exchange/taler-exchange-httpd_batch-deposit.c
+++ b/src/exchange/taler-exchange-httpd_batch-deposit.c
@@ -202,7 +202,7 @@ batch_deposit_transaction (void *cls,
struct BatchDepositContext *dc = cls;
const struct TALER_EXCHANGEDB_BatchDeposit *bd = &dc->bd;
enum GNUNET_DB_QueryStatus qs = GNUNET_SYSERR;
- uint32_t bad_balance_coin_index;
+ uint32_t bad_balance_coin_index = UINT32_MAX;
bool balance_ok;
bool in_conflict;
@@ -233,6 +233,10 @@ batch_deposit_transaction (void *cls,
connection,
&known_coin_id,
mhd_ret);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "make coin known (%s) returned %d\n",
+ TALER_B2S (&cdi->coin.coin_pub),
+ qs);
if (qs < 0)
return qs;
}
@@ -256,11 +260,11 @@ batch_deposit_transaction (void *cls,
"batch-deposit");
return qs;
}
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "do_deposit returned %d / %s / %u / %s\n",
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "do_deposit returned: %d / %s[%u] / %s\n",
qs,
balance_ok ? "balance ok" : "balance insufficient",
- bad_balance_coin_index,
+ (unsigned int) bad_balance_coin_index,
in_conflict ? "in conflict" : "no conflict");
if (in_conflict)
{
@@ -276,6 +280,9 @@ batch_deposit_transaction (void *cls,
if (! balance_ok)
{
GNUNET_assert (bad_balance_coin_index < bd->num_cdis);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "returning history of conflicting coin (%s)\n",
+ TALER_B2S (&bd->cdis[bad_balance_coin_index].coin.coin_pub));
*mhd_ret
= TEH_RESPONSE_reply_coin_insufficient_funds (
connection,