exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit d1d767f8ddb3d980cb231666b7cfb4de496843d6
parent 011b7f5bcd3e3edcc5ae321df1f205fde7d202e5
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 17 Mar 2017 18:29:55 +0100

init risk, notes

Diffstat:
Msrc/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 @@ -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,