summaryrefslogtreecommitdiff
path: root/src/backenddb/pg_update_deposit_confirmation_status.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-01-26 18:25:24 +0100
committerChristian Grothoff <christian@grothoff.org>2024-01-26 18:25:30 +0100
commit52f2abe75732403263d51e365706999cb9db11d7 (patch)
tree46ec83aae7e673cae4fef4f5ab4385b042c49524 /src/backenddb/pg_update_deposit_confirmation_status.c
parent1e0d328f91e4aa2ad783725671bb20d3e8cc1ef4 (diff)
downloadmerchant-52f2abe75732403263d51e365706999cb9db11d7.tar.gz
merchant-52f2abe75732403263d51e365706999cb9db11d7.tar.bz2
merchant-52f2abe75732403263d51e365706999cb9db11d7.zip
work on #8061
Diffstat (limited to 'src/backenddb/pg_update_deposit_confirmation_status.c')
-rw-r--r--src/backenddb/pg_update_deposit_confirmation_status.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/backenddb/pg_update_deposit_confirmation_status.c b/src/backenddb/pg_update_deposit_confirmation_status.c
index 0bc327cd..e0def393 100644
--- a/src/backenddb/pg_update_deposit_confirmation_status.c
+++ b/src/backenddb/pg_update_deposit_confirmation_status.c
@@ -31,13 +31,17 @@ TMH_PG_update_deposit_confirmation_status (
void *cls,
uint64_t deposit_serial,
struct GNUNET_TIME_Timestamp future_retry,
+ struct GNUNET_TIME_Relative retry_backoff,
const char *emsg)
{
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_uint64 (&deposit_serial),
GNUNET_PQ_query_param_timestamp (&future_retry),
- GNUNET_PQ_query_param_string (emsg),
+ NULL == emsg
+ ? GNUNET_PQ_query_param_null ()
+ : GNUNET_PQ_query_param_string (emsg),
+ GNUNET_PQ_query_param_relative_time (&retry_backoff),
GNUNET_PQ_query_param_end
};
@@ -47,6 +51,7 @@ TMH_PG_update_deposit_confirmation_status (
"UPDATE merchant_deposit_confirmations SET"
" wire_transfer_deadline=$2"
",exchange_failure=$3"
+ ",retry_backoff=$4"
" WHERE deposit_confirmation_serial="
" (SELECT deposit_confirmation_serial"
" FROM merchant_deposits"