exchange

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

commit 6ac80befa9413dc1496dfd8a5eb296890db88a02
parent bde075f640cda8c5df6fcb60df15be0cb4f9121d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 12 Apr 2025 16:54:34 +0200

-fix indentation, logging, scoping, compiler warnings

Diffstat:
Msrc/exchange/taler-exchange-httpd_blinding-prepare.c | 26+++++++++++++++-----------
Msrc/exchange/taler-exchange-httpd_kyc-check.c | 4++++
2 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_blinding-prepare.c b/src/exchange/taler-exchange-httpd_blinding-prepare.c @@ -52,22 +52,26 @@ TEH_handler_blinding_prepare (struct TEH_RequestContext *rc, &j_nks), GNUNET_JSON_spec_end () }; - enum GNUNET_GenericReturnValue res; (void) args; - - res = TALER_MHD_parse_json_data (rc->connection, - root, - spec); - if (GNUNET_OK != res) - return (GNUNET_SYSERR == res) ? MHD_NO : MHD_YES; - - if (0 == strcmp (operation, "melt")) + { + enum GNUNET_GenericReturnValue res; + + res = TALER_MHD_parse_json_data (rc->connection, + root, + spec); + if (GNUNET_OK != res) + return (GNUNET_SYSERR == res) + ? MHD_NO + : MHD_YES; + } + if (0 == strcmp (operation, + "melt")) { is_melt = true; } - else if - (0 == strcmp (operation, "withdraw")) + else if (0 == strcmp (operation, + "withdraw")) { is_melt = false; } diff --git a/src/exchange/taler-exchange-httpd_kyc-check.c b/src/exchange/taler-exchange-httpd_kyc-check.c @@ -322,6 +322,10 @@ TEH_handler_kyc_check ( TALER_EC_GENERIC_DB_STORE_FAILED, "lookup_kyc_requirement_by_row"); } + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Found rule %llu (client wants > %llu)\n", + (unsigned long long) rule_gen, + (unsigned long long) kyp->min_rule); do_suspend = false; if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs) {