gnunet-svn
[Top][All Lists]
Advanced

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

[taler-donau] branch master updated: small changes


From: gnunet
Subject: [taler-donau] branch master updated: small changes
Date: Thu, 16 May 2024 02:03:31 +0200

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

lukas-matyja pushed a commit to branch master
in repository donau.

The following commit(s) were added to refs/heads/master by this push:
     new c92f1fe  small changes
c92f1fe is described below

commit c92f1fe7b630cc7da81d0b0ffdb67231853fd85e
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
AuthorDate: Thu May 16 02:04:50 2024 +0200

    small changes
---
 src/testing/testing_api_cmd_issue_receipts.c | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/src/testing/testing_api_cmd_issue_receipts.c 
b/src/testing/testing_api_cmd_issue_receipts.c
index be8b962..4b61341 100644
--- a/src/testing/testing_api_cmd_issue_receipts.c
+++ b/src/testing/testing_api_cmd_issue_receipts.c
@@ -137,9 +137,9 @@ struct CSR_Data
   struct StatusState *ss;
 
   /**
-   * array position in batch issue receipt request (first position is one)
+   * array position in batch issue receipt request (first position is zero)
    */
-  unsigned int position;
+  size_t position;
 };
 
 
@@ -225,11 +225,16 @@ cs_stage_two_callback (
   const struct DONAU_CsRBatchIssueResponse *csrresp)
 {
   struct CSR_Data *csr_data = cls;
+  struct DONAU_BlindedUniqueDonorIdentifier *blinded_udi =
+    &csr_data->ss->bkps[csr_data->position].blinded_udi;
+
   /* ignore multiple callbacks from the same csr request by checking
      if the corresponding blinded message is already initialized */
-  if (NULL != 
&csr_data->ss->bkps[csr_data->position].blinded_udi.blinded_message->cipher) {
-         return;
+  if (NULL != blinded_udi->blinded_message)
+  {
+    return;
   }
+
   if (csrresp->hr.http_status != MHD_HTTP_CREATED)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -246,10 +251,9 @@ cs_stage_two_callback (
 
   struct DONAU_DonationUnitPublicKey *cs_pk =
     &csr_data->ss->keys->donation_unit_keys[csr_data->position].key;
-  struct DONAU_BatchIssueValues *alg_values = GNUNET_new (struct 
DONAU_BatchIssueValues);
+  struct DONAU_BatchIssueValues *alg_values = GNUNET_new (struct
+                                                          
DONAU_BatchIssueValues);
   struct DONAU_BudiMasterSecretP ps;
-  struct DONAU_BlindedUniqueDonorIdentifier *blinded_udi =
-    &csr_data->ss->bkps[csr_data->position].blinded_udi;
   struct DONAU_UniqueDonorIdentifierHashP *udi_hash = csr_data->ss->h_udis;
   union GNUNET_CRYPTO_BlindingSecretP *blinding_secret =
     &csr_data->ss->blinding_secrets[csr_data->position];
@@ -258,8 +262,6 @@ cs_stage_two_callback (
 
   GNUNET_assert (GNUNET_CRYPTO_BSA_CS == cs_pk->bsign_pub_key->cipher);
 
-  GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-              "position value: %d\n", csr_data->position);
   DONAU_donation_unit_ewv_copy (alg_values,
                                 &csrresp->details.ok.
                                 alg_values);
@@ -283,7 +285,7 @@ cs_stage_two_callback (
   csr_data->ss->cs_pending--;
   if (0 == csr_data->ss->cs_pending)
     phase_two (csr_data->ss);
-  //GNUNET_free (csr_data);
+  // GNUNET_free (csr_data);
 }
 
 

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