aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-10 22:33:04 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-10 22:33:04 +0200
commitddf95c491af05732220ac35c6fb1bea48e6f4050 (patch)
tree7003f28a16a693c10d71ba2ddd16232491c2fb42 /src/exchangedb/plugin_exchangedb_postgres.c
parentd01c6fd9028ff766d7604533b30c949e5bec5527 (diff)
remove unused/unusable coin_sig, return correct coin_pub in recoup-reveal failure context
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index 8e45d6711..7934639b0 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -4553,6 +4553,11 @@ postgres_get_coin_transactions (
params,
work[i].cb,
&chc);
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Coin %s yielded %d transactions of type %s\n",
+ TALER_B2S (coin_pub),
+ qs,
+ work[i].statement);
if ( (0 > qs) ||
(chc.failed) )
{
@@ -6913,6 +6918,9 @@ postgres_insert_recoup_request (
GNUNET_break (0);
return GNUNET_DB_STATUS_HARD_ERROR;
}
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Inserting recoup for coin %s\n",
+ TALER_B2S (&coin->coin_pub));
expiry = GNUNET_TIME_absolute_add (timestamp,
pg->legal_reserve_expiration_time);
reserve.gc = GNUNET_TIME_absolute_max (expiry,
@@ -6976,6 +6984,9 @@ postgres_insert_recoup_refresh_request (
(void) cls;
/* now store actual recoup information */
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Inserting recoup-refresh for coin %s\n",
+ TALER_B2S (&coin->coin_pub));
qs = GNUNET_PQ_eval_prepared_non_select (session->conn,
"recoup_refresh_insert",
params);