gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: more logging


From: gnunet
Subject: [taler-exchange] branch master updated: more logging
Date: Wed, 24 Nov 2021 15:26:11 +0100

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 124ab147 more logging
124ab147 is described below

commit 124ab147a97703b0247edebb0a4870a7db6b1079
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Nov 24 15:26:09 2021 +0100

    more logging
---
 src/exchange/taler-exchange-httpd_keys.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/exchange/taler-exchange-httpd_keys.c 
b/src/exchange/taler-exchange-httpd_keys.c
index 81c77df2..32f270c1 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -670,6 +670,7 @@ helper_rsa_cb (
               section_name,
               GNUNET_STRINGS_relative_time_to_string (validity_duration,
                                                       GNUNET_NO));
+  GNUNET_assert (TALER_DENOMINATION_RSA == denom_pub->cipher);
   key_generation++;
   TEH_resume_keys_requests (false);
   hd = GNUNET_CONTAINER_multihashmap_get (hs->rsa_keys,
@@ -689,6 +690,7 @@ helper_rsa_cb (
   hd->sm_sig = *sm_sig;
   TALER_denom_pub_deep_copy (&hd->denom_pub,
                              denom_pub);
+  GNUNET_assert (TALER_DENOMINATION_RSA == hd->denom_pub.cipher);
   // FIXME-OEC: set AGE RESTRICTION (from 'global' variable,
   // that itself is set from /managmenet API!) HERE!
   // ISSUE: tricky to handle if configuration changes
@@ -1012,6 +1014,7 @@ denomination_info_cb (
   struct TEH_KeyStateHandle *ksh = cls;
   struct TEH_DenominationKey *dk;
 
+  GNUNET_assert (TALER_DENOMINATION_INVALID != denom_pub->cipher);
   if ( (0 == meta->start.abs_value_us) ||
        (0 == meta->expire_withdraw.abs_value_us) ||
        (0 == meta->expire_deposit.abs_value_us) ||
@@ -2389,12 +2392,20 @@ TEH_keys_load_fees (const struct TALER_DenominationHash 
*h_denom_pub,
   ok = load_fees (hd->section_name,
                   meta);
   if (GNUNET_OK == ok)
+  {
+    GNUNET_assert (TALER_DENOMINATION_INVALID != hd->denom_pub.cipher);
     TALER_denom_pub_deep_copy (denom_pub,
                                &hd->denom_pub);
+  }
   else
+  {
+    GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+                "No fees for `%s', voiding key\n",
+                hd->section_name);
     memset (denom_pub,
             0,
             sizeof (*denom_pub));
+  }
   return ok;
 }
 

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