aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_melt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange/taler-exchange-httpd_melt.c')
-rw-r--r--src/exchange/taler-exchange-httpd_melt.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/exchange/taler-exchange-httpd_melt.c b/src/exchange/taler-exchange-httpd_melt.c
index 071a9c380..af0a0a636 100644
--- a/src/exchange/taler-exchange-httpd_melt.c
+++ b/src/exchange/taler-exchange-httpd_melt.c
@@ -170,14 +170,12 @@ struct MeltContext
170 * melt operation. 170 * melt operation.
171 * 171 *
172 * @param connection the connection to send errors to 172 * @param connection the connection to send errors to
173 * @param session the database connection
174 * @param[in,out] rmc melt context 173 * @param[in,out] rmc melt context
175 * @param[out] mhd_ret status code to return to MHD on hard error 174 * @param[out] mhd_ret status code to return to MHD on hard error
176 * @return transaction status code 175 * @return transaction status code
177 */ 176 */
178static enum GNUNET_DB_QueryStatus 177static enum GNUNET_DB_QueryStatus
179refresh_check_melt (struct MHD_Connection *connection, 178refresh_check_melt (struct MHD_Connection *connection,
180 struct TALER_EXCHANGEDB_Session *session,
181 struct MeltContext *rmc, 179 struct MeltContext *rmc,
182 MHD_RESULT *mhd_ret) 180 MHD_RESULT *mhd_ret)
183{ 181{
@@ -191,7 +189,6 @@ refresh_check_melt (struct MHD_Connection *connection,
191 /* get historic transaction costs of this coin, including recoups as 189 /* get historic transaction costs of this coin, including recoups as
192 we might be a zombie coin */ 190 we might be a zombie coin */
193 qs = TEH_plugin->get_coin_transactions (TEH_plugin->cls, 191 qs = TEH_plugin->get_coin_transactions (TEH_plugin->cls,
194 session,
195 &rmc->refresh_session.coin.coin_pub, 192 &rmc->refresh_session.coin.coin_pub,
196 GNUNET_YES, 193 GNUNET_YES,
197 &tl); 194 &tl);
@@ -301,7 +298,6 @@ refresh_check_melt (struct MHD_Connection *connection,
301 * 298 *
302 * @param cls our `struct MeltContext` 299 * @param cls our `struct MeltContext`
303 * @param connection MHD request which triggered the transaction 300 * @param connection MHD request which triggered the transaction
304 * @param session database session to use
305 * @param[out] mhd_ret set to MHD response status for @a connection, 301 * @param[out] mhd_ret set to MHD response status for @a connection,
306 * if transaction failed (!) 302 * if transaction failed (!)
307 * @return transaction status 303 * @return transaction status
@@ -309,7 +305,6 @@ refresh_check_melt (struct MHD_Connection *connection,
309static enum GNUNET_DB_QueryStatus 305static enum GNUNET_DB_QueryStatus
310melt_transaction (void *cls, 306melt_transaction (void *cls,
311 struct MHD_Connection *connection, 307 struct MHD_Connection *connection,
312 struct TALER_EXCHANGEDB_Session *session,
313 MHD_RESULT *mhd_ret) 308 MHD_RESULT *mhd_ret)
314{ 309{
315 struct MeltContext *rmc = cls; 310 struct MeltContext *rmc = cls;
@@ -321,7 +316,6 @@ melt_transaction (void *cls,
321 { 316 {
322 qs = TEH_make_coin_known (&rmc->refresh_session.coin, 317 qs = TEH_make_coin_known (&rmc->refresh_session.coin,
323 connection, 318 connection,
324 session,
325 mhd_ret); 319 mhd_ret);
326 if (qs < 0) 320 if (qs < 0)
327 return qs; 321 return qs;
@@ -329,7 +323,6 @@ melt_transaction (void *cls,
329 323
330 /* Check if we already created a matching refresh_session */ 324 /* Check if we already created a matching refresh_session */
331 qs = TEH_plugin->get_melt_index (TEH_plugin->cls, 325 qs = TEH_plugin->get_melt_index (TEH_plugin->cls,
332 session,
333 &rmc->refresh_session.rc, 326 &rmc->refresh_session.rc,
334 &noreveal_index); 327 &noreveal_index);
335 if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == qs) 328 if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == qs)
@@ -355,7 +348,6 @@ melt_transaction (void *cls,
355 348
356 /* check coin has enough funds remaining on it to cover melt cost */ 349 /* check coin has enough funds remaining on it to cover melt cost */
357 qs = refresh_check_melt (connection, 350 qs = refresh_check_melt (connection,
358 session,
359 rmc, 351 rmc,
360 mhd_ret); 352 mhd_ret);
361 if (0 > qs) 353 if (0 > qs)
@@ -367,7 +359,6 @@ melt_transaction (void *cls,
367 TALER_CNC_KAPPA); 359 TALER_CNC_KAPPA);
368 if (0 >= 360 if (0 >=
369 (qs = TEH_plugin->insert_melt (TEH_plugin->cls, 361 (qs = TEH_plugin->insert_melt (TEH_plugin->cls,
370 session,
371 &rmc->refresh_session))) 362 &rmc->refresh_session)))
372 { 363 {
373 if (GNUNET_DB_STATUS_SOFT_ERROR != qs) 364 if (GNUNET_DB_STATUS_SOFT_ERROR != qs)
@@ -511,7 +502,6 @@ check_for_denomination_key (struct MHD_Connection *connection,
511 revoked (those must be recouped) */ 502 revoked (those must be recouped) */
512 qs = TEH_plugin->get_coin_denomination ( 503 qs = TEH_plugin->get_coin_denomination (
513 TEH_plugin->cls, 504 TEH_plugin->cls,
514 NULL,
515 &rmc->refresh_session.coin.coin_pub, 505 &rmc->refresh_session.coin.coin_pub,
516 &denom_hash); 506 &denom_hash);
517 if (0 > qs) 507 if (0 > qs)