diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-26 14:58:44 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-26 14:58:44 +0200 |
commit | df8c011b95cfaaf3040350f7b416c12f3771eb60 (patch) | |
tree | 4791a158ca261614fc1f51fc4d1079f5a8205614 /src/exchange-lib | |
parent | 302a08b7018b18a18939d49e132ca8db78a2be9a (diff) |
return execution time also from exchange C API (#4578)
Diffstat (limited to 'src/exchange-lib')
-rw-r--r-- | src/exchange-lib/exchange_api_track_transfer.c | 8 | ||||
-rw-r--r-- | src/exchange-lib/test_exchange_api.c | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/exchange-lib/exchange_api_track_transfer.c b/src/exchange-lib/exchange_api_track_transfer.c index 41cef5141..c37fbf5a5 100644 --- a/src/exchange-lib/exchange_api_track_transfer.c +++ b/src/exchange-lib/exchange_api_track_transfer.c @@ -86,6 +86,7 @@ check_track_transfer_response_ok (struct TALER_EXCHANGE_TrackTransferHandle *wdh { json_t *details_j; struct GNUNET_HashCode h_wire; + struct GNUNET_TIME_Absolute exec_time; struct TALER_Amount total_amount; struct TALER_MerchantPublicKeyP merchant_pub; unsigned int num_details; @@ -95,6 +96,7 @@ check_track_transfer_response_ok (struct TALER_EXCHANGE_TrackTransferHandle *wdh TALER_JSON_spec_amount ("total", &total_amount), 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), GNUNET_JSON_spec_json ("deposits", &details_j), GNUNET_JSON_spec_fixed_auto ("exchange_sig", &exchange_sig), GNUNET_JSON_spec_fixed_auto ("exchange_pub", &exchange_pub), @@ -183,6 +185,7 @@ check_track_transfer_response_ok (struct TALER_EXCHANGE_TrackTransferHandle *wdh &exchange_pub, json, &h_wire, + exec_time, &total_amount, num_details, details); @@ -251,7 +254,10 @@ handle_track_transfer_finished (void *cls, response_code, NULL, json, - NULL, NULL, 0, NULL); + NULL, + GNUNET_TIME_UNIT_ZERO_ABS, + NULL, + 0, NULL); TALER_EXCHANGE_track_transfer_cancel (wdh); } diff --git a/src/exchange-lib/test_exchange_api.c b/src/exchange-lib/test_exchange_api.c index 71630dc77..c5efe4594 100644 --- a/src/exchange-lib/test_exchange_api.c +++ b/src/exchange-lib/test_exchange_api.c @@ -1394,8 +1394,8 @@ wire_cb (void *cls, * @param exchange_pub public key the exchange used for signing * @param json original json reply (may include signatures, those have then been * validated already) - * @param wtid extracted wire transfer identifier, or NULL if the exchange could - * not provide any (set only if @a http_status is #MHD_HTTP_OK) + * @param h_wire hash of the wire transfer address the transfer went to, or NULL on error + * @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 details_length length of the @a details array @@ -1407,6 +1407,7 @@ wire_deposits_cb (void *cls, const struct TALER_ExchangePublicKeyP *exchange_pub, const json_t *json, const struct GNUNET_HashCode *h_wire, + struct GNUNET_TIME_Absolute execution_time, const struct TALER_Amount *total_amount, unsigned int details_length, const struct TALER_TrackTransferDetails *details) |