gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: fix 404 reserve issue


From: gnunet
Subject: [taler-exchange] branch master updated: fix 404 reserve issue
Date: Wed, 23 Aug 2023 10:37:18 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new fa114646 fix 404 reserve issue
fa114646 is described below

commit fa11464623aade6df05256cff0c029e4568db598
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Aug 23 10:37:15 2023 +0200

    fix 404 reserve issue
---
 src/exchange/taler-exchange-httpd_batch-withdraw.c | 13 ++++++++-----
 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
index d60da56e..f6d56f8c 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,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]