diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-03-12 11:33:10 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-03-12 11:33:10 +0100 |
commit | a166ca7fece8bbe3c66dcf0217cc81d20d185ab0 (patch) | |
tree | b9cf10b1034e3f1d4d9c367ef2faa7e6bd206404 /src/exchange/taler-exchange-httpd_track_transfer.c | |
parent | 1ae2ba3d0a035734e4a28432e3246e58338fe9e8 (diff) | |
download | exchange-a166ca7fece8bbe3c66dcf0217cc81d20d185ab0.tar.gz exchange-a166ca7fece8bbe3c66dcf0217cc81d20d185ab0.tar.bz2 exchange-a166ca7fece8bbe3c66dcf0217cc81d20d185ab0.zip |
fix #5281 for exchange: do preflight check that an old transaction is no longer running by accident
Diffstat (limited to 'src/exchange/taler-exchange-httpd_track_transfer.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_track_transfer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_track_transfer.c b/src/exchange/taler-exchange-httpd_track_transfer.c index 38c6c29e3..493febc21 100644 --- a/src/exchange/taler-exchange-httpd_track_transfer.c +++ b/src/exchange/taler-exchange-httpd_track_transfer.c @@ -141,7 +141,7 @@ reply_track_transfer_details (struct MHD_Connection *connection, TALER_EC_EXCHANGE_BAD_CONFIGURATION, "no keys"); } - + return TEH_RESPONSE_reply_json_pack (connection, MHD_HTTP_OK, "{s:o, s:o, s:o, s:o, s:o, s:o, s:o, s:o}", @@ -327,7 +327,7 @@ handle_transaction_data (void *cls, /** * Execute a "/track/transfer". Returns the transaction information * associated with the given wire transfer identifier. - * + * * If it returns a non-error code, the transaction logic MUST * NOT queue a MHD response. IF it returns an hard error, the * transaction logic MUST queue a MHD response and set @a mhd_ret. IF @@ -474,6 +474,7 @@ TEH_TRACKING_handler_track_transfer (struct TEH_RequestHandler *rh, return MHD_YES; /* parse error */ if (GNUNET_OK != TEH_DB_run_transaction (connection, + "run track transfer", &mhd_ret, &track_transfer_transaction, &ctx)) |