summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-depositcheck.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-01-26 22:39:46 +0100
committerChristian Grothoff <christian@grothoff.org>2024-01-26 22:39:46 +0100
commit159591d0be133ac8d5537ef4a8ae9e55aa813443 (patch)
tree8ba20a4305d9465ee4441bfc9449678082dcd904 /src/backend/taler-merchant-depositcheck.c
parente3c4f5536ea9a17e26ce73a2c6171cbb6caf3d19 (diff)
downloadmerchant-159591d0be133ac8d5537ef4a8ae9e55aa813443.tar.gz
merchant-159591d0be133ac8d5537ef4a8ae9e55aa813443.tar.bz2
merchant-159591d0be133ac8d5537ef4a8ae9e55aa813443.zip
work on #8061, needs more testing
Diffstat (limited to 'src/backend/taler-merchant-depositcheck.c')
-rw-r--r--src/backend/taler-merchant-depositcheck.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-depositcheck.c b/src/backend/taler-merchant-depositcheck.c
index 5fec222f..9576f04b 100644
--- a/src/backend/taler-merchant-depositcheck.c
+++ b/src/backend/taler-merchant-depositcheck.c
@@ -432,6 +432,7 @@ deposit_get_cb (void *cls,
qs = db_plugin->update_deposit_confirmation_status (
db_plugin->cls,
w->deposit_serial,
+ false, /* we are done, wire_pending is now false */
GNUNET_TIME_absolute_to_timestamp (future_retry),
w->retry_backoff,
NULL);
@@ -483,6 +484,8 @@ deposit_get_cb (void *cls,
qs = db_plugin->update_deposit_confirmation_status (
db_plugin->cls,
w->deposit_serial,
+ false, /* we are blocked on KYC, wire_pending is now false */
+ /* FIXME: once the KYC is done, is there logic to get this back to TRUE? */
GNUNET_TIME_absolute_to_timestamp (future_retry),
w->retry_backoff,
"Exchange reported 202 Accepted but no KYC block");
@@ -512,6 +515,7 @@ deposit_get_cb (void *cls,
qs = db_plugin->update_deposit_confirmation_status (
db_plugin->cls,
w->deposit_serial,
+ true, /* this failed, wire_pending remains true */
GNUNET_TIME_absolute_to_timestamp (future_retry),
w->retry_backoff,
msg);
@@ -530,6 +534,7 @@ deposit_get_cb (void *cls,
w_tail,
w);
w_count--;
+ GNUNET_free (w->instance_id);
GNUNET_free (w);
GNUNET_assert (NULL != keys);
if ( (w_count < CONCURRENCY_LIMIT / 2) ||