gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: -make age commiment structs cons


From: gnunet
Subject: [taler-exchange] branch master updated: -make age commiment structs const in traits
Date: Wed, 23 Feb 2022 16:08:35 +0100

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

oec pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new b244e238 -make age commiment structs const in traits
b244e238 is described below

commit b244e23859a933d98e44dac88bd529f22e378214
Author: Özgür Kesim <oec-taler@kesim.org>
AuthorDate: Wed Feb 23 16:08:27 2022 +0100

    -make age commiment structs const in traits
---
 src/include/taler_exchange_service.h  | 4 ++--
 src/include/taler_testing_lib.h       | 4 ++--
 src/testing/testing_api_cmd_deposit.c | 4 ++--
 src/testing/testing_api_cmd_refresh.c | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/include/taler_exchange_service.h 
b/src/include/taler_exchange_service.h
index fcb0ab7f..d1800c01 100644
--- a/src/include/taler_exchange_service.h
+++ b/src/include/taler_exchange_service.h
@@ -1685,8 +1685,8 @@ struct TALER_EXCHANGE_RefreshData
    * age commitment and its hash that went into the original coin, might be
    * NULL
    */
-  struct TALER_AgeCommitment *melt_age_commitment;
-  struct TALER_AgeCommitmentHash *melt_h_age_commitment;
+  const struct TALER_AgeCommitment *melt_age_commitment;
+  const struct TALER_AgeCommitmentHash *melt_h_age_commitment;
 
   /**
    * amount specifying how much the coin will contribute to the melt
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index ab8b64fc..531d9d26 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -2483,8 +2483,8 @@ TALER_TESTING_get_trait (const struct TALER_TESTING_Trait 
*traits,
 #define TALER_TESTING_INDEXED_TRAITS(op)                               \
   op (denom_pub, const struct TALER_EXCHANGE_DenomPublicKey)           \
   op (denom_sig, const struct TALER_DenominationSignature)             \
-  op (age_commitment, struct TALER_AgeCommitment)                      \
-  op (h_age_commitment, struct TALER_AgeCommitmentHash)                \
+  op (age_commitment, const struct TALER_AgeCommitment)                \
+  op (h_age_commitment, const struct TALER_AgeCommitmentHash)          \
   op (planchet_secrets, const struct TALER_PlanchetMasterSecretP)      \
   op (exchange_wd_value, const struct TALER_ExchangeWithdrawValues)    \
   op (coin_priv, const struct TALER_CoinSpendPrivateKeyP)              \
diff --git a/src/testing/testing_api_cmd_deposit.c 
b/src/testing/testing_api_cmd_deposit.c
index ad1315b2..33c1db44 100644
--- a/src/testing/testing_api_cmd_deposit.c
+++ b/src/testing/testing_api_cmd_deposit.c
@@ -287,7 +287,7 @@ deposit_run (void *cls,
   const struct TALER_TESTING_Command *coin_cmd;
   const struct TALER_CoinSpendPrivateKeyP *coin_priv;
   struct TALER_CoinSpendPublicKeyP coin_pub;
-  struct TALER_AgeCommitment *age_commitment = NULL;
+  const struct TALER_AgeCommitment *age_commitment = NULL;
   struct TALER_AgeCommitmentHash h_age_commitment = {0};
   const struct TALER_EXCHANGE_DenomPublicKey *denom_pub;
   const struct TALER_DenominationSignature *denom_pub_sig;
@@ -533,7 +533,7 @@ deposit_traits (void *cls,
   const struct TALER_TESTING_Command *coin_cmd;
   /* Will point to coin cmd internals. */
   const struct TALER_CoinSpendPrivateKeyP *coin_spent_priv;
-  struct TALER_AgeCommitment *age_commitment;
+  const struct TALER_AgeCommitment *age_commitment;
 
   if (GNUNET_YES != ds->command_initialized)
   {
diff --git a/src/testing/testing_api_cmd_refresh.c 
b/src/testing/testing_api_cmd_refresh.c
index f287681d..9a81a603 100644
--- a/src/testing/testing_api_cmd_refresh.c
+++ b/src/testing/testing_api_cmd_refresh.c
@@ -1044,8 +1044,8 @@ melt_run (void *cls,
   {
     struct TALER_Amount melt_amount;
     struct TALER_Amount fresh_amount;
-    struct TALER_AgeCommitment *age_commitment;
-    struct TALER_AgeCommitmentHash *h_age_commitment;
+    const struct TALER_AgeCommitment *age_commitment;
+    const struct TALER_AgeCommitmentHash *h_age_commitment;
     const struct TALER_DenominationSignature *melt_sig;
     const struct TALER_EXCHANGE_DenomPublicKey *melt_denom_pub;
     const struct TALER_TESTING_Command *coin_command;

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