init risk, notes

This commit is contained in:
Christian Grothoff 2017-03-17 18:29:55 +01:00
parent 011b7f5bcd
commit d1d767f8dd
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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,