diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-07-24 09:00:35 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-07-24 09:00:35 +0200 |
commit | 42decef957861689c41d16a0dcfa8af3d9052816 (patch) | |
tree | ed55c4e5a2e2a4b8d2880fe10c8f82173cf0a11e /src/exchange/taler-exchange-httpd_melt.c | |
parent | 325b60989faadb54213af578bb9b1b705d022726 (diff) | |
download | exchange-42decef957861689c41d16a0dcfa8af3d9052816.tar.gz exchange-42decef957861689c41d16a0dcfa8af3d9052816.tar.bz2 exchange-42decef957861689c41d16a0dcfa8af3d9052816.zip |
fix #6939 in exchange
Diffstat (limited to 'src/exchange/taler-exchange-httpd_melt.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_melt.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/exchange/taler-exchange-httpd_melt.c b/src/exchange/taler-exchange-httpd_melt.c index a11d608bc..8e51a4174 100644 --- a/src/exchange/taler-exchange-httpd_melt.c +++ b/src/exchange/taler-exchange-httpd_melt.c @@ -554,18 +554,6 @@ check_for_denomination_key (struct MHD_Connection *connection, rmc->coin_refresh_fee = dk->meta.fee_refresh; rmc->coin_value = dk->meta.value; - /* check client used sane currency */ - if (GNUNET_YES != - TALER_amount_cmp_currency (&rmc->refresh_session.amount_with_fee, - &rmc->coin_value) ) - { - GNUNET_break_op (0); - return TALER_MHD_reply_with_error ( - connection, - MHD_HTTP_BAD_REQUEST, - TALER_EC_GENERIC_CURRENCY_MISMATCH, - rmc->refresh_session.amount_with_fee.currency); - } /* check coin is actually properly signed */ if (GNUNET_OK != TALER_test_coin_valid (&rmc->refresh_session.coin, @@ -621,6 +609,7 @@ TEH_handler_melt (struct MHD_Connection *connection, GNUNET_JSON_spec_fixed_auto ("confirm_sig", &rmc.refresh_session.coin_sig), TALER_JSON_spec_amount ("value_with_fee", + TEH_currency, &rmc.refresh_session.amount_with_fee), GNUNET_JSON_spec_fixed_auto ("rc", &rmc.refresh_session.rc), |