From dc9f41a7940a540df9d6f9a1d1b3a01c96176b11 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 23 Jun 2020 10:30:31 +0200 Subject: clarify with/without wire fee issue, sanity checks on currencies --- src/lib/exchange_api_transfers_get.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib') diff --git a/src/lib/exchange_api_transfers_get.c b/src/lib/exchange_api_transfers_get.c index dd9b64467..6b5bba8e8 100644 --- a/src/lib/exchange_api_transfers_get.c +++ b/src/lib/exchange_api_transfers_get.c @@ -155,6 +155,12 @@ check_transfers_get_response_ok ( GNUNET_JSON_parse (detail_j, spec_detail, NULL, NULL)) || + (GNUNET_OK != + TALER_amount_cmp_currency (&total_expected, + &detail->coin_value)) || + (GNUNET_OK != + TALER_amount_cmp_currency (&total_expected, + &detail->coin_fee)) || (0 > TALER_amount_add (&total_expected, &total_expected, -- cgit v1.2.3