diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-01-15 15:19:31 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-01-15 15:19:31 +0100 |
commit | b31d803c167ada7ab33a1fc59be9ba5bb5dc5981 (patch) | |
tree | 5d31a13a368c6aadaa2133cdfb7aec2af3d813d8 /src/exchange | |
parent | 2526143a4f08b2b1be56cb3d344d051221295633 (diff) | |
download | exchange-b31d803c167ada7ab33a1fc59be9ba5bb5dc5981.tar.gz exchange-b31d803c167ada7ab33a1fc59be9ba5bb5dc5981.tar.bz2 exchange-b31d803c167ada7ab33a1fc59be9ba5bb5dc5981.zip |
add timestamp for /reserve/status deposit events
Diffstat (limited to 'src/exchange')
-rw-r--r-- | src/exchange/taler-exchange-httpd_responses.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c index 8965e2aaf..c7874ed15 100644 --- a/src/exchange/taler-exchange-httpd_responses.c +++ b/src/exchange/taler-exchange-httpd_responses.c @@ -711,7 +711,9 @@ TEH_RESPONSE_compile_reserve_history (const struct TALER_EXCHANGEDB_ReserveHisto json_history = json_array (); ret = 0; - for (const struct TALER_EXCHANGEDB_ReserveHistory *pos = rh; NULL != pos; pos = pos->next) + for (const struct TALER_EXCHANGEDB_ReserveHistory *pos = rh; + NULL != pos; + pos = pos->next) { switch (pos->type) { @@ -731,8 +733,9 @@ TEH_RESPONSE_compile_reserve_history (const struct TALER_EXCHANGEDB_ReserveHisto ret |= 1; GNUNET_assert (0 == json_array_append_new (json_history, - json_pack ("{s:s, s:O, s:o, s:o}", + json_pack ("{s:s, s:o, s:O, s:o, s:o}", "type", "DEPOSIT", + "timestamp", GNUNET_JSON_from_time_abs (pos->details.bank->execution_date), "sender_account_details", pos->details.bank->sender_account_details, "wire_reference", GNUNET_JSON_from_data (pos->details.bank->wire_reference, pos->details.bank->wire_reference_size), |