summaryrefslogtreecommitdiff
path: root/src/auditor/taler-auditor.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-17 18:29:55 +0100
committerChristian Grothoff <christian@grothoff.org>2017-03-17 18:29:55 +0100
commitd1d767f8ddb3d980cb231666b7cfb4de496843d6 (patch)
tree0af038e312df57fd4e671b6072af0eed35c75cfb /src/auditor/taler-auditor.c
parent011b7f5bcd3e3edcc5ae321df1f205fde7d202e5 (diff)
downloadexchange-d1d767f8ddb3d980cb231666b7cfb4de496843d6.tar.gz
exchange-d1d767f8ddb3d980cb231666b7cfb4de496843d6.tar.bz2
exchange-d1d767f8ddb3d980cb231666b7cfb4de496843d6.zip
init risk, notes
Diffstat (limited to 'src/auditor/taler-auditor.c')
-rw-r--r--src/auditor/taler-auditor.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c
index 34f860ee1..afb912b96 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,