From b7c6edb0e5218a3f09e11ca3c6455eccd958e959 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Sat, 14 Mar 2015 14:47:55 +0100 Subject: [PATCH] httpd: Use the right fee for deposit transaction --- src/mint/taler-mint-httpd_db.c | 3 +-- 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 index 5e57e152d..df68b6570 100644 --- 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,