diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-04 16:49:33 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-04 16:49:33 +0100 |
commit | 6ab67a3a76ee5ce8f8dec910dae7da524f066d2a (patch) | |
tree | e9f0a94960ad977eef19332bf836666e12aa38f2 /src/exchange-lib/exchange_api_track_transfer.c | |
parent | f406f96129766c144c1531dc853969664f410d8c (diff) | |
download | exchange-6ab67a3a76ee5ce8f8dec910dae7da524f066d2a.tar.xz |
implementing #4929
Diffstat (limited to 'src/exchange-lib/exchange_api_track_transfer.c')
-rw-r--r-- | src/exchange-lib/exchange_api_track_transfer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/exchange-lib/exchange_api_track_transfer.c b/src/exchange-lib/exchange_api_track_transfer.c index 819a00adf..dff39eb29 100644 --- a/src/exchange-lib/exchange_api_track_transfer.c +++ b/src/exchange-lib/exchange_api_track_transfer.c @@ -87,12 +87,14 @@ check_track_transfer_response_ok (struct TALER_EXCHANGE_TrackTransferHandle *wdh struct GNUNET_HashCode h_wire; struct GNUNET_TIME_Absolute exec_time; struct TALER_Amount total_amount; + struct TALER_Amount wire_fee; struct TALER_MerchantPublicKeyP merchant_pub; unsigned int num_details; struct TALER_ExchangePublicKeyP exchange_pub; struct TALER_ExchangeSignatureP exchange_sig; struct GNUNET_JSON_Specification spec[] = { TALER_JSON_spec_amount ("total", &total_amount), + TALER_JSON_spec_amount ("wire_fee", &wire_fee), GNUNET_JSON_spec_fixed_auto ("merchant_pub", &merchant_pub), GNUNET_JSON_spec_fixed_auto ("H_wire", &h_wire), GNUNET_JSON_spec_absolute_time ("execution_time", &exec_time), @@ -158,6 +160,8 @@ check_track_transfer_response_ok (struct TALER_EXCHANGE_TrackTransferHandle *wdh wdp.purpose.size = htonl (sizeof (struct TALER_WireDepositDataPS)); TALER_amount_hton (&wdp.total, &total_amount); + TALER_amount_hton (&wdp.wire_fee, + &wire_fee); wdp.merchant_pub = merchant_pub; wdp.h_wire = h_wire; GNUNET_CRYPTO_hash_context_finish (hash_context, @@ -186,6 +190,7 @@ check_track_transfer_response_ok (struct TALER_EXCHANGE_TrackTransferHandle *wdh &h_wire, exec_time, &total_amount, + &wire_fee, num_details, details); } @@ -257,6 +262,7 @@ handle_track_transfer_finished (void *cls, NULL, GNUNET_TIME_UNIT_ZERO_ABS, NULL, + NULL, 0, NULL); TALER_EXCHANGE_track_transfer_cancel (wdh); } |