diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-04-20 21:38:02 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-04-20 21:38:02 +0200 |
commit | 27c921c7c45f8ea8fed5c945a9e0ae0cfcc1c8e9 (patch) | |
tree | 16da56b06fb589d3be77fc48c2116b7cb54647dc /src/exchange/taler-exchange-httpd_responses.c | |
parent | 92d9ec69e6d8e9f7eb0be0d6a7f67444189b319e (diff) | |
download | exchange-27c921c7c45f8ea8fed5c945a9e0ae0cfcc1c8e9.tar.gz exchange-27c921c7c45f8ea8fed5c945a9e0ae0cfcc1c8e9.tar.bz2 exchange-27c921c7c45f8ea8fed5c945a9e0ae0cfcc1c8e9.zip |
finished implementing #4956 in principle, but not yet tested
Diffstat (limited to 'src/exchange/taler-exchange-httpd_responses.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_responses.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c index 1de383e37..0d7406451 100644 --- a/src/exchange/taler-exchange-httpd_responses.c +++ b/src/exchange/taler-exchange-httpd_responses.c @@ -886,17 +886,16 @@ compile_reserve_history (const struct TALER_EXCHANGEDB_ReserveHistory *rh, rcc.reserve_pub = pos->details.closing->reserve_pub; TALER_JSON_hash (pos->details.closing->receiver_account_details, &rcc.h_wire); - TALER_JSON_hash (pos->details.closing->transfer_details, - &rcc.h_transfer); + rcc.wtid = pos->details.closing->transfer_details; TEH_KS_sign (&rcc.purpose, &pub, &sig); GNUNET_assert (0 == json_array_append_new (json_history, - json_pack ("{s:s, s:O, s:O, s:o, s:o, s:o, s:o, s:o}", + json_pack ("{s:s, s:O, s:o, s:o, s:o, s:o, s:o, s:o}", "type", "CLOSING", "receiver_account_details", pos->details.closing->receiver_account_details, - "transfer_details", pos->details.closing->transfer_details, + "transfer_details", GNUNET_JSON_from_data_auto (&pos->details.closing->transfer_details), "exchange_pub", GNUNET_JSON_from_data_auto (&pub), "exchange_sig", GNUNET_JSON_from_data_auto (&sig), "timestamp", GNUNET_JSON_from_time_abs (pos->details.closing->execution_date), |