exchange

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

commit a64b6053770339f3ae2de4f779bad42c7109cb0d
parent 1f2dee5ae8c902e10c8e2a00b57147b2169275a3
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 20 Jan 2016 16:21:32 +0100

indent, etc.

Diffstat:
Msrc/mint-lib/mint_api_refresh_link.c | 13+++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/mint-lib/mint_api_refresh_link.c b/src/mint-lib/mint_api_refresh_link.c @@ -194,7 +194,7 @@ parse_refresh_link_ok (struct TALER_MINT_RefreshLinkHandle *rlh, }; if (GNUNET_OK != - MAJ_parse_json (json_array_get (json, + MAJ_parse_json (json_array_get (json, session), spec)) { @@ -218,7 +218,7 @@ parse_refresh_link_ok (struct TALER_MINT_RefreshLinkHandle *rlh, struct TALER_CoinSpendPrivateKeyP coin_privs[num_coins]; struct TALER_DenominationSignature sigs[num_coins]; struct TALER_DenominationPublicKey pubs[num_coins]; - + off_coin = 0; for (session=0;session<json_array_size (json); session++) { @@ -233,7 +233,7 @@ parse_refresh_link_ok (struct TALER_MINT_RefreshLinkHandle *rlh, }; if (GNUNET_OK != - MAJ_parse_json (json_array_get (json, + MAJ_parse_json (json_array_get (json, session), spec)) { @@ -246,13 +246,13 @@ parse_refresh_link_ok (struct TALER_MINT_RefreshLinkHandle *rlh, MAJ_parse_free (spec); return GNUNET_SYSERR; } - + /* decode all coins */ for (i=0;i<json_array_size (jsona);i++) { if (GNUNET_OK != parse_refresh_link_coin (rlh, - json_array_get (jsona, + json_array_get (jsona, i), &trans_pub, &secret_enc, @@ -274,7 +274,8 @@ parse_refresh_link_ok (struct TALER_MINT_RefreshLinkHandle *rlh, } off_coin += json_array_size (jsona); MAJ_parse_free (spec); - } + } /* end of for (session) */ + if (off_coin == num_coins) { rlh->link_cb (rlh->link_cb_cls,