gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: -update to work with latest exch


From: gnunet
Subject: [taler-merchant] branch master updated: -update to work with latest exchange API change
Date: Wed, 29 Jun 2022 19:34:33 +0200

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

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new be27446f -update to work with latest exchange API change
be27446f is described below

commit be27446f003e069ce79f94de27bfe1e272b94aca
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Jun 29 19:34:31 2022 +0200

    -update to work with latest exchange API change
---
 src/backend/taler-merchant-httpd_post-orders-ID-pay.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c 
b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
index 667f4ac2..b6790461 100644
--- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
+++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
@@ -1132,8 +1132,6 @@ process_pay_with_exchange (
     enum TALER_ErrorCode ec;
     unsigned int http_status;
     bool is_age_restricted_denom = false;
-    struct TALER_AgeCommitmentHash ach = {0};
-    struct TALER_AgeCommitmentHash *achp = NULL;
 
     if (NULL != dc->dh)
       continue; /* we were here before (can happen due to
@@ -1261,9 +1259,8 @@ AGE_FAIL:
       /* Age restriction successfully verified!
        * Calculate the hash of the age commitment. */
       TALER_age_commitment_hash (&dc->age_commitment,
-                                 &ach);
+                                 &dc->h_age_commitment);
       GNUNET_free (dc->age_commitment.keys);
-      achp = &ach;
     }
     else if (is_age_restricted_denom)
     {
@@ -1284,8 +1281,6 @@ AGE_FAIL:
                                         &denom_details->h_key)));
         return;
       }
-
-      achp = &dc->h_age_commitment;
     }
 
     dc->deposit_fee = denom_details->fees.deposit;
@@ -1296,10 +1291,10 @@ AGE_FAIL:
     {
       struct TALER_EXCHANGE_CoinDepositDetail cdd = {
         .amount = dc->amount_with_fee,
-        .h_age_commitment = h_age_commitment,
         .coin_pub = dc->coin_pub,
         .coin_sig = dc->coin_sig,
-        .denom_sig = dc->ub_sig
+        .denom_sig = dc->ub_sig,
+        .h_age_commitment = dc->h_age_commitment
       };
       struct TALER_EXCHANGE_DepositContractDetail dcd = {
         .wire_deadline = pc->wire_transfer_deadline,

-- 
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]