[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 139/152: clarify with/without wire fee issue, sanity ch
From: |
gnunet |
Subject: |
[taler-exchange] 139/152: clarify with/without wire fee issue, sanity checks on currencies |
Date: |
Sun, 05 Jul 2020 20:48:15 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit dc9f41a7940a540df9d6f9a1d1b3a01c96176b11
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Jun 23 10:30:31 2020 +0200
clarify with/without wire fee issue, sanity checks on currencies
---
src/include/taler_exchange_service.h | 2 +-
src/lib/exchange_api_transfers_get.c | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/include/taler_exchange_service.h
b/src/include/taler_exchange_service.h
index 07998702..e61a07c9 100644
--- a/src/include/taler_exchange_service.h
+++ b/src/include/taler_exchange_service.h
@@ -1611,7 +1611,7 @@ struct TALER_EXCHANGE_TransferData
struct GNUNET_TIME_Absolute execution_time;
/**
- * amount of the wire transfer; FIXME: total wired (without fee), or
including @a wire_fee?
+ * Actual amount of the wire transfer, excluding the wire fee.
*/
struct TALER_Amount total_amount;
diff --git a/src/lib/exchange_api_transfers_get.c
b/src/lib/exchange_api_transfers_get.c
index dd9b6446..6b5bba8e 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,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-exchange] 146/152: expand justifications / agree with append-only log, (continued)
- [taler-exchange] 146/152: expand justifications / agree with append-only log, gnunet, 2020/07/05
- [taler-exchange] 109/152: update exchange API to return struct instead of lots of individual args for TALER_EXCHANGE_transfers_get() -- simplifies merchant later, gnunet, 2020/07/05
- [taler-exchange] 119/152: ecs, gnunet, 2020/07/05
- [taler-exchange] 111/152: modify TALER_EXCHANGE_deposits_get() API to avoid NULL pointers and need for deep copies, gnunet, 2020/07/05
- [taler-exchange] 127/152: do init submodules, gnunet, 2020/07/05
- [taler-exchange] 130/152: sync gana, gnunet, 2020/07/05
- [taler-exchange] 122/152: created taler_sq_lib, gnunet, 2020/07/05
- [taler-exchange] 137/152: testing traits for uint32_t and GNUNET_TIME_Relative, gnunet, 2020/07/05
- [taler-exchange] 136/152: add TALER_MHD_parse_internal_json_data(), gnunet, 2020/07/05
- [taler-exchange] 93/152: update exchange API to return struct instead of lots of individual args for TALER_EXCHANGE_transfers_get() -- simplifies merchant later, gnunet, 2020/07/05
- [taler-exchange] 139/152: clarify with/without wire fee issue, sanity checks on currencies,
gnunet <=
- [taler-exchange] 143/152: bump required version, gnunet, 2020/07/05
- [taler-exchange] 150/152: merge, gnunet, 2020/07/05
- [taler-exchange] 149/152: fix error reporting/handling, gnunet, 2020/07/05
- [taler-exchange] 129/152: update gana, gnunet, 2020/07/05
- [taler-exchange] 148/152: move rewind command to exchange, add proper support for rewinding in batches, modify API to rewind to label, gnunet, 2020/07/05
- [taler-exchange] 145/152: minor typo, gnunet, 2020/07/05
- [taler-exchange] 133/152: synchronize with latest GANA, gnunet, 2020/07/05
- [taler-exchange] 135/152: synchronize with latest GANA, gnunet, 2020/07/05
- [taler-exchange] 134/152: TALER_TESTING_cmd_admin_add_incoming_with_ref finds reserve_pub if reserve_priv doesn't exist, gnunet, 2020/07/05
- [taler-exchange] 142/152: fix FIXME by exposing deposit permission signing in API instead of doing it inside of the testing logic, gnunet, 2020/07/05