summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-06-29 14:00:56 +0200
committerChristian Grothoff <christian@grothoff.org>2022-06-29 14:01:02 +0200
commit60a30b1c75644710d635c2efa4bccf440e1839b4 (patch)
tree7f6cf01b9a5379d8f6fb2db4321941e4209f992c /src/exchange/taler-exchange-httpd_deposit.c
parent9b312aa0f8179a3641b4dc8ded70f46f9f1263c1 (diff)
downloadexchange-60a30b1c75644710d635c2efa4bccf440e1839b4.tar.gz
exchange-60a30b1c75644710d635c2efa4bccf440e1839b4.tar.bz2
exchange-60a30b1c75644710d635c2efa4bccf440e1839b4.zip
-deduplicate purse deposit logic
Diffstat (limited to 'src/exchange/taler-exchange-httpd_deposit.c')
-rw-r--r--src/exchange/taler-exchange-httpd_deposit.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c
index c5f98d21e..672e7b6ea 100644
--- a/src/exchange/taler-exchange-httpd_deposit.c
+++ b/src/exchange/taler-exchange-httpd_deposit.c
@@ -452,35 +452,6 @@ TEH_handler_deposit (struct MHD_Connection *connection,
"preflight failure");
}
-#if NOT_MOVED
- {
- MHD_RESULT mhd_ret = MHD_NO;
- enum GNUNET_DB_QueryStatus qs;
-
- /* make sure coin is 'known' in database */
- for (unsigned int tries = 0; tries<MAX_TRANSACTION_COMMIT_RETRIES; tries++)
- {
- qs = TEH_make_coin_known (&deposit.coin,
- connection,
- &dc.known_coin_id,
- &mhd_ret);
- /* no transaction => no serialization failures should be possible */
- if (GNUNET_DB_STATUS_SOFT_ERROR != qs)
- break;
- }
- if (GNUNET_DB_STATUS_SOFT_ERROR == qs)
- {
- GNUNET_break (0);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
- TALER_EC_GENERIC_DB_COMMIT_FAILED,
- "make_coin_known");
- }
- if (qs < 0)
- return mhd_ret;
- }
-#endif
-
/* execute transaction */
{
MHD_RESULT mhd_ret;