From 11c52837112421af755bc7bc21569011274909ad Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 17 Jan 2020 19:54:16 +0100 Subject: prepare API to enable verification of fees in coin history check --- src/lib/exchange_api_common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/exchange_api_common.c') diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c index c7e76985..3860a661 100644 --- a/src/lib/exchange_api_common.c +++ b/src/lib/exchange_api_common.c @@ -29,6 +29,7 @@ /** * Verify a coins transaction history as returned by the exchange. * + * @param dk fee structure for the coin, NULL to skip verifying fees * @param currency expected currency for the coin * @param coin_pub public key of the coin * @param history history of the coin in json encoding @@ -36,7 +37,9 @@ * @return #GNUNET_OK if @a history is valid, #GNUNET_SYSERR if not */ int -TALER_EXCHANGE_verify_coin_history (const char *currency, +TALER_EXCHANGE_verify_coin_history (const struct + TALER_EXCHANGE_DenomPublicKey *dk, + const char *currency, const struct TALER_CoinSpendPublicKeyP *coin_pub, json_t *history, -- cgit v1.2.3