From c3cd21508b0900ee5437edb3828b4b7c2f359495 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 8 Jul 2020 19:36:08 +0200 Subject: synchronize with latest GANA --- src/exchange/taler-exchange-httpd_recoup.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'src/exchange/taler-exchange-httpd_recoup.c') diff --git a/src/exchange/taler-exchange-httpd_recoup.c b/src/exchange/taler-exchange-httpd_recoup.c index d9969d90a..b3ea90f5c 100644 --- a/src/exchange/taler-exchange-httpd_recoup.c +++ b/src/exchange/taler-exchange-httpd_recoup.c @@ -133,18 +133,12 @@ recoup_transaction (void *cls, int existing_recoup_found; /* make sure coin is 'known' in database */ - qs = TEH_plugin->ensure_coin_known (TEH_plugin->cls, - session, - pc->coin); - if (GNUNET_DB_STATUS_HARD_ERROR == qs) - { - *mhd_ret - = TALER_MHD_reply_with_error (connection, - MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_DB_COIN_HISTORY_STORE_ERROR, - "could not persist coin data"); - return GNUNET_DB_STATUS_HARD_ERROR; - } + qs = TEH_make_coin_known (&rmc->refresh_session.coin, + connection, + session, + mhd_ret); + if (qs < 0) + return qs; /* Check whether a recoup is allowed, and if so, to which reserve / account the money should go */ -- cgit v1.2.3