summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-04 16:49:48 +0100
committerChristian Grothoff <christian@grothoff.org>2017-03-04 16:49:48 +0100
commit50bdee0736a9552d61b315d3cb686c9849ed4d5e (patch)
treee741b4baf0f805666e890c0d3166bc7abd6a8eab /src/backend
parent341bb90f91d4d1a09332b5596653767ce7138ebd (diff)
downloadmerchant-50bdee0736a9552d61b315d3cb686c9849ed4d5e.tar.gz
merchant-50bdee0736a9552d61b315d3cb686c9849ed4d5e.tar.bz2
merchant-50bdee0736a9552d61b315d3cb686c9849ed4d5e.zip
implementing #4929 (adjusting to exchange API changes)
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/taler-merchant-httpd_track-transaction.c18
-rw-r--r--src/backend/taler-merchant-httpd_track-transfer.c2
2 files changed, 12 insertions, 8 deletions
diff --git a/src/backend/taler-merchant-httpd_track-transaction.c b/src/backend/taler-merchant-httpd_track-transaction.c
index 17b45425..b0dffaff 100644
--- a/src/backend/taler-merchant-httpd_track-transaction.c
+++ b/src/backend/taler-merchant-httpd_track-transaction.c
@@ -340,6 +340,7 @@ trace_coins (struct TrackTransactionContext *tctx);
* not provide any (set only if @a http_status is #MHD_HTTP_OK)
* @param total_amount total amount of the wire transfer, or NULL if the exchange could
* not provide any @a wtid (set only if @a http_status is #MHD_HTTP_OK)
+ * @param wire_fee wire fee that was charged by the exchange
* @param details_length length of the @a details array
* @param details array with details about the combined transactions
*/
@@ -352,16 +353,17 @@ wire_deposits_cb (void *cls,
const struct GNUNET_HashCode *h_wire,
struct GNUNET_TIME_Absolute execution_time,
const struct TALER_Amount *total_amount,
+ const struct TALER_Amount *wire_fee,
unsigned int details_length,
const struct TALER_TrackTransferDetails *details)
- {
- struct TrackTransactionContext *tctx = cls;
- struct TrackCoinContext *tcc;
- unsigned int i;
+{
+ struct TrackTransactionContext *tctx = cls;
+ struct TrackCoinContext *tcc;
+ unsigned int i;
- tctx->wdh = NULL;
- if (MHD_HTTP_OK != http_status)
- {
+ tctx->wdh = NULL;
+ if (MHD_HTTP_OK != http_status)
+ {
resume_track_transaction_with_response
(tctx,
MHD_HTTP_FAILED_DEPENDENCY,
@@ -509,7 +511,7 @@ wtid_cb (void *cls,
/* WARNING: if two transactions got aggregated under the same
WTID, then this branch is always taken (when attempting to
track the second transaction). */
- if (GNUNET_OK ==
+ if (GNUNET_OK ==
db->find_proof_by_wtid (db->cls,
tctx->exchange_uri,
wtid,
diff --git a/src/backend/taler-merchant-httpd_track-transfer.c b/src/backend/taler-merchant-httpd_track-transfer.c
index 6f4d49ac..029eec52 100644
--- a/src/backend/taler-merchant-httpd_track-transfer.c
+++ b/src/backend/taler-merchant-httpd_track-transfer.c
@@ -267,6 +267,7 @@ check_transfer (void *cls,
* @param execution_time time when the exchange claims to have performed the wire transfer
* @param total_amount total amount of the wire transfer, or NULL if the exchange could
* not provide any @a wtid (set only if @a http_status is #MHD_HTTP_OK)
+ * @param wire_fee wire fee that was charged by the exchange
* @param details_length length of the @a details array
* @param details array with details about the combined transactions
*/
@@ -279,6 +280,7 @@ wire_transfer_cb (void *cls,
const struct GNUNET_HashCode *h_wire,
struct GNUNET_TIME_Absolute execution_time,
const struct TALER_Amount *total_amount,
+ const struct TALER_Amount *wire_fee,
unsigned int details_length,
const struct TALER_TrackTransferDetails *details)
{