summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-08 19:36:08 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-08 19:36:08 +0200
commitc3cd21508b0900ee5437edb3828b4b7c2f359495 (patch)
tree04058188f8a2772e3ebdcdc7564de57322a019f5 /src/exchange/taler-exchange-httpd_deposit.c
parentc93f64710674bb4f635288c5e326f2cf47b8e8c7 (diff)
downloadexchange-c3cd21508b0900ee5437edb3828b4b7c2f359495.tar.gz
exchange-c3cd21508b0900ee5437edb3828b4b7c2f359495.tar.bz2
exchange-c3cd21508b0900ee5437edb3828b4b7c2f359495.zip
synchronize with latest GANA
Diffstat (limited to 'src/exchange/taler-exchange-httpd_deposit.c')
-rw-r--r--src/exchange/taler-exchange-httpd_deposit.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c
index 30f754b6..0b810220 100644
--- a/src/exchange/taler-exchange-httpd_deposit.c
+++ b/src/exchange/taler-exchange-httpd_deposit.c
@@ -218,18 +218,12 @@ deposit_transaction (void *cls,
enum GNUNET_DB_QueryStatus qs;
/* make sure coin is 'known' in database */
- qs = TEH_plugin->ensure_coin_known (TEH_plugin->cls,
- session,
- &deposit->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 (&deposit->coin,
+ connection,
+ session,
+ mhd_ret);
+ if (qs < 0)
+ return qs;
/* Theoretically, someone other threat may have received
and committed the deposit in the meantime. Check now