diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-12-08 15:18:40 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-12-08 15:18:40 +0100 |
commit | 9d3f7d3a56712d6a963e8a4775a8f9757740d648 (patch) | |
tree | 95955e48fffa2d6dfcf6e81083b43c3df40f2072 /src/exchange/taler-exchange-httpd_melt.c | |
parent | 2e6e2387b8c4e83e32c50e4fc8cb5312bce68735 (diff) | |
download | exchange-9d3f7d3a56712d6a963e8a4775a8f9757740d648.tar.gz exchange-9d3f7d3a56712d6a963e8a4775a8f9757740d648.tar.bz2 exchange-9d3f7d3a56712d6a963e8a4775a8f9757740d648.zip |
move ensure_coin_known for melt and recoup outside of transaction, more logging
Diffstat (limited to 'src/exchange/taler-exchange-httpd_melt.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_melt.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_melt.c b/src/exchange/taler-exchange-httpd_melt.c index e2e343711..3347790b5 100644 --- a/src/exchange/taler-exchange-httpd_melt.c +++ b/src/exchange/taler-exchange-httpd_melt.c @@ -380,6 +380,16 @@ static MHD_RESULT handle_melt (struct MHD_Connection *connection, struct MeltContext *rmc) { + if (GNUNET_SYSERR == + TEH_plugin->preflight (TEH_plugin->cls)) + { + GNUNET_break (0); + return TALER_MHD_reply_with_error (connection, + MHD_HTTP_INTERNAL_SERVER_ERROR, + TALER_EC_GENERIC_DB_START_FAILED, + "preflight failure"); + } + /* verify signature of coin for melt operation */ { struct TALER_RefreshMeltCoinAffirmationPS body = { |