exchange

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

commit 786705c19d01f2d27b0b6dacd5718ab53d261325
parent 15c3577722c2586b5243fd6d23966b49c59f08be
Author: Florian Dold <dold@inria.fr>
Date:   Fri, 25 Dec 2015 18:52:22 +0100

Add lots of logging.

Diffstat:
Msrc/mint-lib/mint_api_deposit.c | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/mint-lib/mint_api_deposit.c b/src/mint-lib/mint_api_deposit.c @@ -319,6 +319,16 @@ verify_signatures (const struct TALER_MINT_DenomPublicKey *dki, &coin_pub->eddsa_pub)) { TALER_LOG_WARNING ("Invalid coin signature on /deposit request\n"); + { + char *s; + s = TALER_amount_to_string (amount); + TALER_LOG_DEBUG ("... amount_with_fee was %s\n", s); + GNUNET_free (s); + s = TALER_amount_to_string (&dki->fee_deposit); + TALER_LOG_DEBUG ("... deposit_fee was %s\n", s); + GNUNET_free (s); + } + return GNUNET_SYSERR; } @@ -498,7 +508,7 @@ TALER_MINT_deposit (struct TALER_MINT_Handle *mint, JSON_COMPACT))); json_decref (deposit_obj); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "URL for deposit: `%s'", + "URL for deposit: `%s'\n", dh->url); GNUNET_assert (CURLE_OK == curl_easy_setopt (eh,