diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-26 14:50:49 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-26 14:50:49 +0200 |
commit | 302a08b7018b18a18939d49e132ca8db78a2be9a (patch) | |
tree | 44ab352820b814d87663ccd33cb8c5727bc44b1d /src/exchange/taler-exchange-httpd_responses.c | |
parent | 265fc74b656910dda559f410aa140c57de261cc9 (diff) | |
download | exchange-302a08b7018b18a18939d49e132ca8db78a2be9a.tar.gz exchange-302a08b7018b18a18939d49e132ca8db78a2be9a.tar.bz2 exchange-302a08b7018b18a18939d49e132ca8db78a2be9a.zip |
implement that /track/transaction returns execution time (#4578)
Diffstat (limited to 'src/exchange/taler-exchange-httpd_responses.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_responses.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c index 5be8d1773..47a709a67 100644 --- a/src/exchange/taler-exchange-httpd_responses.c +++ b/src/exchange/taler-exchange-httpd_responses.c @@ -1181,15 +1181,17 @@ TMH_RESPONSE_reply_track_transaction (struct MHD_Connection *connection, * @param total total amount that was transferred * @param merchant_pub public key of the merchant * @param h_wire destination account + * @param exec_time execution time of the wire transfer * @param wdd_head linked list with details about the combined deposits * @return MHD result code */ int TMH_RESPONSE_reply_track_transfer_details (struct MHD_Connection *connection, - const struct TALER_Amount *total, - const struct TALER_MerchantPublicKeyP *merchant_pub, - const struct GNUNET_HashCode *h_wire, - const struct TMH_TrackTransferDetail *wdd_head) + const struct TALER_Amount *total, + const struct TALER_MerchantPublicKeyP *merchant_pub, + const struct GNUNET_HashCode *h_wire, + struct GNUNET_TIME_Absolute exec_time, + const struct TMH_TrackTransferDetail *wdd_head) { const struct TMH_TrackTransferDetail *wdd_pos; json_t *deposits; @@ -1235,10 +1237,11 @@ TMH_RESPONSE_reply_track_transfer_details (struct MHD_Connection *connection, &sig); return TMH_RESPONSE_reply_json_pack (connection, MHD_HTTP_OK, - "{s:o, s:o, s:o, s:o, s:o, s:o}", + "{s:o, s:o, s:o, s:o, s:o, s:o, s:o}", "total", TALER_JSON_from_amount (total), "merchant_pub", GNUNET_JSON_from_data_auto (merchant_pub), "H_wire", GNUNET_JSON_from_data_auto (h_wire), + "execution_time", GNUNET_JSON_from_time_abs (exec_time), "deposits", deposits, "exchange_sig", GNUNET_JSON_from_data_auto (&sig), "exchange_pub", GNUNET_JSON_from_data_auto (&pub)); |