gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: one more missing check for no_ag


From: gnunet
Subject: [taler-exchange] branch master updated: one more missing check for no_age_commitment hash
Date: Mon, 11 Sep 2023 23:03:35 +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 7890c46c one more missing check for no_age_commitment hash
7890c46c is described below

commit 7890c46c9d0b47589ec3144a154cc6e2b27249dc
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Sep 11 23:03:30 2023 +0200

    one more missing check for no_age_commitment hash
---
 src/exchange/taler-exchange-httpd_responses.c | 8 ++++++--
 src/exchangedb/pg_ensure_coin_known.c         | 4 +++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_responses.c 
b/src/exchange/taler-exchange-httpd_responses.c
index 1b601b87..7d2d7a9b 100644
--- a/src/exchange/taler-exchange-httpd_responses.c
+++ b/src/exchange/taler-exchange-httpd_responses.c
@@ -76,8 +76,12 @@ TEH_RESPONSE_compile_transaction_history (
               &deposit->deposit_fee,
               &h_wire,
               &deposit->h_contract_terms,
-              &deposit->wallet_data_hash,
-              &deposit->h_age_commitment,
+              deposit->no_wallet_data_hash
+              ? NULL
+              : &deposit->wallet_data_hash,
+              deposit->no_age_commitment
+              ? NULL
+              : &deposit->h_age_commitment,
               &deposit->h_policy,
               &deposit->h_denom_pub,
               deposit->timestamp,
diff --git a/src/exchangedb/pg_ensure_coin_known.c 
b/src/exchangedb/pg_ensure_coin_known.c
index 34613575..952acf24 100644
--- a/src/exchangedb/pg_ensure_coin_known.c
+++ b/src/exchangedb/pg_ensure_coin_known.c
@@ -41,7 +41,9 @@ TEH_PG_ensure_coin_known (void *cls,
   struct GNUNET_PQ_QueryParam params[] = {
     GNUNET_PQ_query_param_auto_from_type (&coin->coin_pub),
     GNUNET_PQ_query_param_auto_from_type (&coin->denom_pub_hash),
-    GNUNET_PQ_query_param_auto_from_type (&coin->h_age_commitment),
+    coin->no_age_commitment
+    ? GNUNET_PQ_query_param_null ()
+    : GNUNET_PQ_query_param_auto_from_type (&coin->h_age_commitment),
     TALER_PQ_query_param_denom_sig (&coin->denom_sig),
     GNUNET_PQ_query_param_end
   };

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