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-lib | |
parent | 2526143a4f08b2b1be56cb3d344d051221295633 (diff) | |
download | exchange-b31d803c167ada7ab33a1fc59be9ba5bb5dc5981.tar.xz |
add timestamp for /reserve/status deposit events
Diffstat (limited to 'src/exchange-lib')
-rw-r--r-- | src/exchange-lib/exchange_api_reserve.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/exchange-lib/exchange_api_reserve.c b/src/exchange-lib/exchange_api_reserve.c index 35fd0e018..ab857f28f 100644 --- a/src/exchange-lib/exchange_api_reserve.c +++ b/src/exchange-lib/exchange_api_reserve.c @@ -142,11 +142,14 @@ parse_reserve_history (struct TALER_EXCHANGE_Handle *exchange, json_t *wire_account; void *wire_reference; size_t wire_reference_size; + struct GNUNET_TIME_Absolute timestamp; struct GNUNET_JSON_Specification withdraw_spec[] = { GNUNET_JSON_spec_varsize ("wire_reference", &wire_reference, &wire_reference_size), + GNUNET_JSON_spec_absolute_time ("timestamp", + ×tamp), GNUNET_JSON_spec_json ("sender_account_details", &wire_account), GNUNET_JSON_spec_end() @@ -173,6 +176,7 @@ parse_reserve_history (struct TALER_EXCHANGE_Handle *exchange, rhistory[off].details.in_details.sender_account_details = wire_account; rhistory[off].details.in_details.wire_reference = wire_reference; rhistory[off].details.in_details.wire_reference_size = wire_reference_size; + rhistory[off].details.in_details.timestamp = timestamp; /* end type==DEPOSIT */ } else if (0 == strcasecmp (type, |