diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-05-23 10:36:39 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-05-23 10:36:39 +0200 |
commit | b3844e4923df39b41b8a8d46df173b1432c92364 (patch) | |
tree | d3bfa4a3019321d53828817994709c3ac4f1a4f5 /src/include | |
parent | fcaf508647f86af4409aaec25a138e45fcb90be3 (diff) | |
download | exchange-b3844e4923df39b41b8a8d46df173b1432c92364.tar.xz |
-deduplicate and expand reserve history validation logic in testing library
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchange_service.h | 5 | ||||
-rw-r--r-- | src/include/taler_testing_lib.h | 14 |
2 files changed, 14 insertions, 5 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 5829ebce1..afaa28136 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -1472,11 +1472,6 @@ struct TALER_EXCHANGE_ReserveHistoryEntry { /** - * Fee paid for the request. - */ - struct TALER_Amount history_fee; - - /** * When was the request made. */ struct GNUNET_TIME_Timestamp request_timestamp; diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index b0dee023f..ff3936cfe 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -956,6 +956,20 @@ TALER_TESTING_parse_coin_reference ( unsigned int *idx); +/** + * Compare @a h1 and @a h2. + * + * @param h1 a history entry + * @param h2 a history entry + * @return 0 if @a h1 and @a h2 are equal + */ +int +TALER_TESTING_history_entry_cmp (const struct + TALER_EXCHANGE_ReserveHistoryEntry *h1, + const struct + TALER_EXCHANGE_ReserveHistoryEntry *h2); + + /* ************** Specific interpreter commands ************ */ |