diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-25 00:31:23 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-25 00:31:23 +0200 |
commit | 47c3a489e2dd89e0e9054f5e1735e549e7e2c83e (patch) | |
tree | 0d618fc00f186660cddc5aa382fdbe4a4419f6ec | |
parent | fbbf35c87ff71b6dc1e29718c591ea47f2c5eb1e (diff) | |
download | exchange-47c3a489e2dd89e0e9054f5e1735e549e7e2c83e.tar.xz |
presumably fixing #4455. A check did exist (see taler-exchange-httpd_deposit.c:225), but the two checks disagreed whether it was OK for the fee to be exactly equal to the amount. Now both checks allow the fee to be equal to the amount.
-rw-r--r-- | src/exchange/taler-exchange-httpd_db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c index 1e392c584..4b6b458ce 100644 --- a/src/exchange/taler-exchange-httpd_db.c +++ b/src/exchange/taler-exchange-httpd_db.c @@ -246,7 +246,7 @@ TMH_DB_execute_deposit (struct MHD_Connection *connection, } COMMIT_TRANSACTION(session, connection); - GNUNET_assert (GNUNET_OK == + GNUNET_assert (GNUNET_SYSERR != TALER_amount_subtract (&amount_without_fee, &deposit->amount_with_fee, &deposit->deposit_fee)); |