commit b7c6edb0e5218a3f09e11ca3c6455eccd958e959
parent 7a417e1de07ccc6f8fdbe6519fa0041a5c1dbbb8
Author: Sree Harsha Totakura <sreeharsha@totakura.in>
Date: Sat, 14 Mar 2015 14:47:55 +0100
httpd: Use the right fee for deposit transaction
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/mint/taler-mint-httpd_db.c b/src/mint/taler-mint-httpd_db.c
@@ -74,7 +74,6 @@ TALER_MINT_db_execute_deposit (struct MHD_Connection *connection,
struct TALER_Amount spent;
struct TALER_Amount value;
struct TALER_Amount fee_deposit;
- struct TALER_Amount fee_withdraw;
struct TALER_Amount fee_refresh;
struct MintKeyState *mks;
struct TALER_MINT_DenomKeyIssuePriv *dki;
@@ -113,7 +112,7 @@ TALER_MINT_db_execute_deposit (struct MHD_Connection *connection,
}
tl = TALER_MINT_DB_get_coin_transactions (db_conn,
&deposit->coin.coin_pub);
- spent = fee_withdraw; /* fee for THIS transaction */
+ spent = fee_deposit; /* fee for THIS transaction */
/* FIXME: need to deal better with integer overflows
in the logic that follows! (change amount.c API! -- #3637) */
spent = TALER_amount_add (spent,