From 6b1f4904ef011760f2a5c30698ab62652594fa6c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 5 May 2016 14:43:13 +0200 Subject: export transaction history check function --- src/exchange-lib/exchange_api_common.c | 2 +- src/exchange-lib/exchange_api_common.h | 2 +- src/exchange-lib/exchange_api_deposit.c | 2 +- src/exchange-lib/exchange_api_refresh.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/exchange-lib') diff --git a/src/exchange-lib/exchange_api_common.c b/src/exchange-lib/exchange_api_common.c index c46b69a40..15c73acca 100644 --- a/src/exchange-lib/exchange_api_common.c +++ b/src/exchange-lib/exchange_api_common.c @@ -37,7 +37,7 @@ * @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 char *currency, const struct TALER_CoinSpendPublicKeyP *coin_pub, json_t *history, struct TALER_Amount *total) diff --git a/src/exchange-lib/exchange_api_common.h b/src/exchange-lib/exchange_api_common.h index 2a521ceb2..ef808fba6 100644 --- a/src/exchange-lib/exchange_api_common.h +++ b/src/exchange-lib/exchange_api_common.h @@ -33,7 +33,7 @@ * @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 char *currency, const struct TALER_CoinSpendPublicKeyP *coin_pub, json_t *history, struct TALER_Amount *total); diff --git a/src/exchange-lib/exchange_api_deposit.c b/src/exchange-lib/exchange_api_deposit.c index 0dc036379..871787729 100644 --- a/src/exchange-lib/exchange_api_deposit.c +++ b/src/exchange-lib/exchange_api_deposit.c @@ -156,7 +156,7 @@ verify_deposit_signature_forbidden (const struct TALER_EXCHANGE_DepositHandle *d history = json_object_get (json, "history"); if (GNUNET_OK != - TALER_EXCHANGE_verify_coin_history_ (dh->coin_value.currency, + TALER_EXCHANGE_verify_coin_history (dh->coin_value.currency, &dh->depconf.coin_pub, history, &total)) diff --git a/src/exchange-lib/exchange_api_refresh.c b/src/exchange-lib/exchange_api_refresh.c index a63f03ac8..91bcca180 100644 --- a/src/exchange-lib/exchange_api_refresh.c +++ b/src/exchange-lib/exchange_api_refresh.c @@ -1220,7 +1220,7 @@ verify_refresh_melt_signature_forbidden (struct TALER_EXCHANGE_RefreshMeltHandle history = json_object_get (json, "history"); if (GNUNET_OK != - TALER_EXCHANGE_verify_coin_history_ (original_value.currency, + TALER_EXCHANGE_verify_coin_history (original_value.currency, &coin_pub, history, &total)) -- cgit v1.2.3