exchange

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

commit 6987837f088999d9701669581813245132be3928
parent 32d23e7499a85ba24ca9a28310b208a383e05d35
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 14 Oct 2016 01:43:55 +0200

fix #4730: amount coult end up being zero, so check should be for SYSERR, not for OK (as zero implies NO)

Diffstat:
Msrc/exchange/taler-exchange-httpd_db.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c @@ -930,7 +930,7 @@ refresh_check_melt (struct MHD_Connection *connection, if (TALER_amount_cmp (&coin_value, &spent) < 0) { - GNUNET_assert (GNUNET_OK == + GNUNET_assert (GNUNET_SYSERR != TALER_amount_subtract (&coin_residual, &spent, &coin_details->melt_amount_with_fee));