diff options
Diffstat (limited to 'src/exchange/taler-exchange-httpd_recoup-refresh.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_recoup-refresh.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/exchange/taler-exchange-httpd_recoup-refresh.c b/src/exchange/taler-exchange-httpd_recoup-refresh.c index acadc999..78a454c8 100644 --- a/src/exchange/taler-exchange-httpd_recoup-refresh.c +++ b/src/exchange/taler-exchange-httpd_recoup-refresh.c @@ -63,11 +63,6 @@ struct RecoupContext const struct TALER_CoinSpendSignatureP *coin_sig; /** - * The amount requested to be recouped. - */ - const struct TALER_Amount *requested_amount; - - /** * Unique ID of the coin in the known_coins table. */ uint64_t known_coin_id; @@ -118,7 +113,6 @@ recoup_refresh_transaction (void *cls, qs = TEH_plugin->do_recoup_refresh (TEH_plugin->cls, &pc->old_coin_pub, pc->rrc_serial, - pc->requested_amount, pc->coin_bks, &pc->coin->coin_pub, pc->known_coin_id, @@ -170,7 +164,6 @@ recoup_refresh_transaction (void *cls, * @param coin information about the coin * @param coin_bks blinding data of the coin (to be checked) * @param coin_sig signature of the coin - * @param requested_amount requested amount to be recouped * @return MHD result code */ static MHD_RESULT @@ -178,8 +171,7 @@ verify_and_execute_recoup_refresh ( struct MHD_Connection *connection, const struct TALER_CoinPublicInfo *coin, const union TALER_DenominationBlindingKeyP *coin_bks, - const struct TALER_CoinSpendSignatureP *coin_sig, - const struct TALER_Amount *requested_amount) + const struct TALER_CoinSpendSignatureP *coin_sig) { struct RecoupContext pc; const struct TEH_DenominationKey *dk; @@ -237,7 +229,6 @@ verify_and_execute_recoup_refresh ( if (GNUNET_OK != TALER_wallet_recoup_refresh_verify (&coin->denom_pub_hash, coin_bks, - requested_amount, &coin->coin_pub, coin_sig)) { @@ -279,7 +270,6 @@ verify_and_execute_recoup_refresh ( pc.coin_sig = coin_sig; pc.coin_bks = coin_bks; pc.coin = coin; - pc.requested_amount = requested_amount; { MHD_RESULT mhd_ret = MHD_NO; @@ -367,7 +357,6 @@ TEH_handler_recoup_refresh (struct MHD_Connection *connection, struct TALER_CoinPublicInfo coin; union TALER_DenominationBlindingKeyP coin_bks; struct TALER_CoinSpendSignatureP coin_sig; - struct TALER_Amount amount; struct GNUNET_JSON_Specification spec[] = { GNUNET_JSON_spec_fixed_auto ("denom_pub_hash", &coin.denom_pub_hash), @@ -377,9 +366,6 @@ TEH_handler_recoup_refresh (struct MHD_Connection *connection, &coin_bks), GNUNET_JSON_spec_fixed_auto ("coin_sig", &coin_sig), - TALER_JSON_spec_amount ("amount", - TEH_currency, - &amount), GNUNET_JSON_spec_end () }; @@ -400,8 +386,7 @@ TEH_handler_recoup_refresh (struct MHD_Connection *connection, res = verify_and_execute_recoup_refresh (connection, &coin, &coin_bks, - &coin_sig, - &amount); + &coin_sig); GNUNET_JSON_parse_free (spec); return res; } |