commit fa11464623aade6df05256cff0c029e4568db598
parent 8cc927b778a8476deda5ffcdf1e91607f9667db8
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 23 Aug 2023 10:37:15 +0200
fix 404 reserve issue
Diffstat:
1 file 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
@@ -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,