gnunet-svn
[Top][All Lists]
Advanced

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

[exchange] branch master updated (ec5626e19 -> 0060b1765)


From: gnunet
Subject: [exchange] branch master updated (ec5626e19 -> 0060b1765)
Date: Thu, 16 Jan 2025 19:18:18 +0100

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

sebasjm pushed a change to branch master
in repository exchange.

    from ec5626e19 fakebank: new BANK_UPDATE_ABORT_CONFLICT error when 
selecting aborted withdrawal
     new fbe292993 fix renames in gana
     new 0060b1765 -make codespell happy

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../taler-exchange-httpd_age-withdraw_reveal.c     |  4 +--
 src/exchange/taler-exchange-httpd_withdraw.c       | 30 +++++++++++-----------
 src/util/exchange_signatures.c                     |  8 +++---
 3 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_age-withdraw_reveal.c 
b/src/exchange/taler-exchange-httpd_age-withdraw_reveal.c
index 1bfc86ad2..a02f27bcb 100644
--- a/src/exchange/taler-exchange-httpd_age-withdraw_reveal.c
+++ b/src/exchange/taler-exchange-httpd_age-withdraw_reveal.c
@@ -220,7 +220,7 @@ find_original_commitment (
     case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
       *result = TALER_MHD_reply_with_error (connection,
                                             MHD_HTTP_NOT_FOUND,
-                                            
TALER_EC_EXCHANGE_AGE_WITHDRAW_COMMITMENT_UNKNOWN,
+                                            
TALER_EC_EXCHANGE_WITHDRAW_COMMITMENT_UNKNOWN,
                                             NULL);
       return GNUNET_SYSERR;
     case GNUNET_DB_STATUS_HARD_ERROR:
@@ -485,7 +485,7 @@ verify_commitment_and_max_age (
     {
       GNUNET_break_op (0);
       *result = TALER_MHD_reply_with_ec (connection,
-                                         
TALER_EC_EXCHANGE_AGE_WITHDRAW_REVEAL_INVALID_HASH,
+                                         
TALER_EC_EXCHANGE_WITHDRAW_REVEAL_INVALID_HASH,
                                          NULL);
       return GNUNET_SYSERR;
     }
diff --git a/src/exchange/taler-exchange-httpd_withdraw.c 
b/src/exchange/taler-exchange-httpd_withdraw.c
index 3ed555ce0..e543192fb 100644
--- a/src/exchange/taler-exchange-httpd_withdraw.c
+++ b/src/exchange/taler-exchange-httpd_withdraw.c
@@ -340,21 +340,21 @@ _Static_assert (
  * and optionally set the given field (with an optionally given value).
  */
 #define SET_ERROR(wc, ec) \
-        do \
-        { (wc)->error.code = (ec); \
-          (wc)->phase = PHASE_GENERATE_REPLY_ERROR; } while (0)
+  do \
+  { (wc)->error.code = (ec); \
+    (wc)->phase = PHASE_GENERATE_REPLY_ERROR; } while (0)
 
 #define SET_ERROR_WITH_FIELD(wc, ec, field) \
-        do \
-        { (wc)->error.code = (ec); \
-          (wc)->error.details.field = (field); \
-          (wc)->phase = PHASE_GENERATE_REPLY_ERROR; } while (0)
+  do \
+  { (wc)->error.code = (ec); \
+    (wc)->error.details.field = (field); \
+    (wc)->phase = PHASE_GENERATE_REPLY_ERROR; } while (0)
 
 #define SET_ERROR_WITH_DETAIL(wc, ec, field, value) \
-        do \
-        { (wc)->error.code = (ec); \
-          (wc)->error.details.field = (value); \
-          (wc)->phase = PHASE_GENERATE_REPLY_ERROR; } while (0)
+  do \
+  { (wc)->error.code = (ec); \
+    (wc)->error.details.field = (value); \
+    (wc)->phase = PHASE_GENERATE_REPLY_ERROR; } while (0)
 
 
 /**
@@ -1888,7 +1888,7 @@ phase_generate_reply_error (
                    wc->rc->connection,
                    MHD_HTTP_CONFLICT,
                    TALER_MHD_PACK_EC (
-                     TALER_EC_EXCHANGE_AGE_WITHDRAW_MAXIMUM_AGE_TOO_LARGE),
+                     TALER_EC_EXCHANGE_WITHDRAW_MAXIMUM_AGE_TOO_LARGE),
                    GNUNET_JSON_pack_uint64 (
                      "allowed_maximum_age",
                      wc->error.details.age.max),
@@ -1908,7 +1908,7 @@ phase_generate_reply_error (
     finish_loop (wc,
                  TEH_RESPONSE_reply_reserve_insufficient_balance (
                    wc->rc->connection,
-                   TALER_EC_EXCHANGE_AGE_WITHDRAW_INSUFFICIENT_FUNDS,
+                   TALER_EC_EXCHANGE_WITHDRAW_INSUFFICIENT_FUNDS,
                    &wc->error.details.reserve_balance,
                    &wc->typ.age.commitment.amount_with_fee,
                    &wc->reserve_pub));
@@ -1919,7 +1919,7 @@ phase_generate_reply_error (
                  TALER_MHD_reply_with_error (
                    wc->rc->connection,
                    MHD_HTTP_BAD_REQUEST,
-                   TALER_EC_EXCHANGE_AGE_WITHDRAW_AMOUNT_OVERFLOW,
+                   TALER_EC_EXCHANGE_WITHDRAW_AMOUNT_OVERFLOW,
                    wc->error.details.which));
     break;
 
@@ -1949,7 +1949,7 @@ phase_generate_reply_error (
                    TALER_MHD_reply_with_error (
                      wc->rc->connection,
                      MHD_HTTP_CONFLICT,
-                     TALER_EC_EXCHANGE_WITHDRAW_BATCH_IDEMPOTENT_PLANCHET,
+                     TALER_EC_EXCHANGE_WITHDRAW_IDEMPOTENT_PLANCHET,
                      NULL));
       break;
     }
diff --git a/src/util/exchange_signatures.c b/src/util/exchange_signatures.c
index a3cdf9dd5..b700b2226 100644
--- a/src/util/exchange_signatures.c
+++ b/src/util/exchange_signatures.c
@@ -388,7 +388,7 @@ GNUNET_NETWORK_STRUCT_BEGIN
 struct TALER_AgeWithdrawConfirmationPS
 {
   /**
-   * Purpose is #TALER_SIGNATURE_EXCHANGE_CONFIRM_AGE_WITHDRAW.   Signed by a
+   * Purpose is #TALER_SIGNATURE_EXCHANGE_CONFIRM_WITHDRAW.   Signed by a
    * `struct TALER_ExchangePublicKeyP` using EdDSA.
    */
   struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
@@ -418,7 +418,7 @@ TALER_exchange_online_age_withdraw_confirmation_sign (
 {
 
   struct TALER_AgeWithdrawConfirmationPS confirm = {
-    .purpose.purpose = htonl (TALER_SIGNATURE_EXCHANGE_CONFIRM_AGE_WITHDRAW),
+    .purpose.purpose = htonl (TALER_SIGNATURE_EXCHANGE_CONFIRM_WITHDRAW),
     .purpose.size = htonl (sizeof (confirm)),
     .h_commitment = *h_commitment,
     .noreveal_index = htonl (noreveal_index)
@@ -438,7 +438,7 @@ TALER_exchange_online_age_withdraw_confirmation_verify (
   const struct TALER_ExchangeSignatureP *exchange_sig)
 {
   struct TALER_AgeWithdrawConfirmationPS confirm = {
-    .purpose.purpose = htonl (TALER_SIGNATURE_EXCHANGE_CONFIRM_AGE_WITHDRAW),
+    .purpose.purpose = htonl (TALER_SIGNATURE_EXCHANGE_CONFIRM_WITHDRAW),
     .purpose.size = htonl (sizeof (confirm)),
     .h_commitment = *h_commitment,
     .noreveal_index = htonl (noreveal_index)
@@ -446,7 +446,7 @@ TALER_exchange_online_age_withdraw_confirmation_verify (
 
   if (GNUNET_OK !=
       GNUNET_CRYPTO_eddsa_verify (
-        TALER_SIGNATURE_EXCHANGE_CONFIRM_AGE_WITHDRAW,
+        TALER_SIGNATURE_EXCHANGE_CONFIRM_WITHDRAW,
         &confirm,
         &exchange_sig->eddsa_signature,
         &exchange_pub->eddsa_pub))

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