[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] branch master updated: Remove wrong block.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] branch master updated: Remove wrong block. |
Date: |
Mon, 21 May 2018 13:25:28 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new ce55e7c Remove wrong block.
ce55e7c is described below
commit ce55e7c229bcb251fe95cd0779148d7c261bb3ab
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon May 21 13:25:12 2018 +0200
Remove wrong block.
---
.../taler-exchange-httpd_reserve_withdraw.c | 29 ----------------------
1 file changed, 29 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_reserve_withdraw.c
b/src/exchange/taler-exchange-httpd_reserve_withdraw.c
index ec1a768..870fd43 100644
--- a/src/exchange/taler-exchange-httpd_reserve_withdraw.c
+++ b/src/exchange/taler-exchange-httpd_reserve_withdraw.c
@@ -284,35 +284,6 @@ withdraw_transaction (void *cls,
return GNUNET_DB_STATUS_HARD_ERROR;
}
- #if 0
- /**
- * WARNING:
- *
- * This check below is useless, as when a reserve gets
- * closed, the database records that operation's amount
- * as the _entire_ amount that was left into the reserve.
- * This means that the closing fee is _included_ in what
- * the database has, so it makes no sense to further
- * subtract it from the 'withdraw_total'. On the other
- * hand, the reserve-closing logic is careful to NOT wire
- * transfer all the reserve amount back to the bank, but
- * it does subtract the closing fee first from it.
- *
- * NOTE: this if-0'd out chunk of code is left around for
- * internal review.
- */
-
- if (GNUNET_OK !=
- TALER_amount_add (&withdraw_total,
- &withdraw_total,
- &pos->details.closing->closing_fee))
- {
- *mhd_ret = TEH_RESPONSE_reply_internal_db_error (connection,
-
TALER_EC_WITHDRAW_AMOUNT_WITHDRAWALS_OVERFLOW);
- return GNUNET_DB_STATUS_HARD_ERROR;
- }
- #endif
-
res |= 2;
break;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-exchange] branch master updated: Remove wrong block.,
gnunet <=