aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-08-23 10:37:15 +0200
committerChristian Grothoff <christian@grothoff.org>2023-08-23 10:37:15 +0200
commitfa11464623aade6df05256cff0c029e4568db598 (patch)
tree90a3e2cde2b1232c86c81f4e7a2038b2d5b52213 /src
parent8cc927b778a8476deda5ffcdf1e91607f9667db8 (diff)
downloadexchange-fa11464623aade6df05256cff0c029e4568db598.tar.gz
exchange-fa11464623aade6df05256cff0c029e4568db598.tar.bz2
exchange-fa11464623aade6df05256cff0c029e4568db598.zip
fix 404 reserve issue
Diffstat (limited to 'src')
-rw-r--r--src/exchange/taler-exchange-httpd_batch-withdraw.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/exchange/taler-exchange-httpd_batch-withdraw.c b/src/exchange/taler-exchange-httpd_batch-withdraw.c
index d60da56e9..f6d56f8ce 100644
--- a/src/exchange/taler-exchange-httpd_batch-withdraw.c
+++ b/src/exchange/taler-exchange-httpd_batch-withdraw.c
@@ -424,11 +424,14 @@ batch_withdraw_transaction (void *cls,
}
if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs)
{
- *mhd_ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_NOT_FOUND,
- TALER_EC_EXCHANGE_GENERIC_RESERVE_UNKNOWN,
- NULL);
- return GNUNET_DB_STATUS_HARD_ERROR;
+ /* Assume P2P transfer, so origin is reserve_pub */
+ char *pt;
+
+ pt = TALER_reserve_make_payto (TEH_base_url,
+ wc->reserve_pub);
+ TALER_payto_hash (pt,
+ &wc->h_payto);
+ GNUNET_free (pt);
}
qs = TALER_KYCLOGIC_kyc_test_required (
TALER_KYCLOGIC_KYC_TRIGGER_WITHDRAW,