From c7e2d206bab7f06375be2154b323ad429d13a9e7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 21 Mar 2022 03:59:31 +0100 Subject: add logic to check timestamp, revise history balance calculation logic in client --- src/lib/exchange_api_reserves_history.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/lib/exchange_api_reserves_history.c') diff --git a/src/lib/exchange_api_reserves_history.c b/src/lib/exchange_api_reserves_history.c index c0f6c42d2..d9c42d691 100644 --- a/src/lib/exchange_api_reserves_history.c +++ b/src/lib/exchange_api_reserves_history.c @@ -91,7 +91,6 @@ handle_reserves_history_ok (struct TALER_EXCHANGE_ReservesHistoryHandle *rsh, { json_t *history; unsigned int len; - struct TALER_Amount history_balance; struct TALER_EXCHANGE_ReserveHistory rs = { .hr.reply = j, .hr.http_status = MHD_HTTP_OK @@ -123,15 +122,13 @@ handle_reserves_history_ok (struct TALER_EXCHANGE_ReservesHistoryHandle *rsh, rhistory = GNUNET_new_array (len, struct TALER_EXCHANGE_ReserveHistoryEntry); - // FIXME: even this history could be partial - // (if the reserve is too old!); update API - // and return incoming & outgoing totals separately? if (GNUNET_OK != TALER_EXCHANGE_parse_reserve_history (rsh->exchange, history, &rsh->reserve_pub, rs.details.ok.balance.currency, - &history_balance, + &rs.details.ok.total_in, + &rs.details.ok.total_out, len, rhistory)) { -- cgit v1.2.3