gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] 02/02: init risk, notes


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 02/02: init risk, notes
Date: Fri, 17 Mar 2017 18:28:00 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

commit d1d767f8ddb3d980cb231666b7cfb4de496843d6
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Mar 17 18:29:55 2017 +0100

    init risk, notes
---
 src/auditor/taler-auditor.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c
index 34f860e..afb912b 100644
--- a/src/auditor/taler-auditor.c
+++ b/src/auditor/taler-auditor.c
@@ -1055,6 +1055,8 @@ struct CoinContext
   /**
    * Current financial risk of the exchange operator with respect
    * to key compromise.
+   *
+   * TODO: not yet properly used!
    */
   struct TALER_Amount risk;
 
@@ -1943,6 +1945,7 @@ analyze_coins (void *cls)
 
   /* setup 'cc' */
   // FIXME: FIX misnomer "denomination_summary", as this is no longer exactly 
about denominations!
+  // FIXME: combine request with the one for the 'risk' summary?
   dret = adb->get_denomination_summary (adb->cls,
                                         asession,
                                         &master_pub,
@@ -1981,7 +1984,9 @@ analyze_coins (void *cls)
   }
   if (GNUNET_NO == dret)
   {
-    /* FIXME: initialize cc->risk by other means... */
+    GNUNET_assert (GNUNET_OK ==
+                   TALER_amount_get_zero (currency,
+                                          &cc.risk));
   }
 
   cc.coins = GNUNET_CONTAINER_multihashmap_create (1024,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]