summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_common.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-23 10:36:39 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-23 10:36:39 +0200
commitb3844e4923df39b41b8a8d46df173b1432c92364 (patch)
treed3bfa4a3019321d53828817994709c3ac4f1a4f5 /src/lib/exchange_api_common.c
parentfcaf508647f86af4409aaec25a138e45fcb90be3 (diff)
downloadexchange-b3844e4923df39b41b8a8d46df173b1432c92364.tar.gz
exchange-b3844e4923df39b41b8a8d46df173b1432c92364.tar.bz2
exchange-b3844e4923df39b41b8a8d46df173b1432c92364.zip
-deduplicate and expand reserve history validation logic in testing library
Diffstat (limited to 'src/lib/exchange_api_common.c')
-rw-r--r--src/lib/exchange_api_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c
index 373989e4f..9ef2d3f44 100644
--- a/src/lib/exchange_api_common.c
+++ b/src/lib/exchange_api_common.c
@@ -475,7 +475,7 @@ parse_history (struct TALER_EXCHANGE_ReserveHistoryEntry *rh,
GNUNET_JSON_spec_fixed_auto ("reserve_sig",
&rh->details.history_details.reserve_sig),
TALER_JSON_spec_amount_any ("history_fee",
- &rh->details.history_details.history_fee),
+ &rh->amount),
GNUNET_JSON_spec_timestamp ("request_timestamp",
&rh->details.history_details.request_timestamp),
GNUNET_JSON_spec_end ()
@@ -493,7 +493,7 @@ parse_history (struct TALER_EXCHANGE_ReserveHistoryEntry *rh,
if (GNUNET_OK !=
TALER_wallet_reserve_history_verify (
rh->details.history_details.request_timestamp,
- &rh->details.history_details.history_fee,
+ &rh->amount,
uc->reserve_pub,
&rh->details.history_details.reserve_sig))
{