diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-22 01:06:29 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-22 01:06:29 +0100 |
commit | ffc4beff54cf48874c04b8416c74f90a1364e25c (patch) | |
tree | 7fa3f1ab3990c35cb8c5bb6187f61d88eae5a0bc /src | |
parent | 1cf7b4585b0e6c864cb1bde74358bcfefc7992e7 (diff) |
big EC rename, part II
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/taler-merchant-httpd_track-transaction.c | 14 | ||||
-rw-r--r-- | src/backend/taler-merchant-httpd_track-transfer.c | 24 |
2 files changed, 19 insertions, 19 deletions
diff --git a/src/backend/taler-merchant-httpd_track-transaction.c b/src/backend/taler-merchant-httpd_track-transaction.c index fedd2284..7f5d747f 100644 --- a/src/backend/taler-merchant-httpd_track-transaction.c +++ b/src/backend/taler-merchant-httpd_track-transaction.c @@ -473,7 +473,7 @@ wire_deposits_cb (void *cls, TALER_MHD_make_json_pack ("{s:I, s:I, s:I, s:O}", "code", (json_int_t) - TALER_EC_DEPOSITS_GET_WIRE_TRANSFER_TRACE_ERROR, + TALER_EC_TRACK_TRANSACTION_WIRE_TRANSFER_TRACE_ERROR, "exchange-http-status", (json_int_t) http_status, "exchange-code", (json_int_t) ec, @@ -638,7 +638,7 @@ wtid_cb (void *cls, TALER_MHD_make_json_pack ("{s:I, s:I, s:I, s:O}", "code", - (json_int_t) TALER_EC_DEPOSITS_GET_COIN_TRACE_ERROR, + (json_int_t) TALER_EC_TRACK_TRANSACTION_COIN_TRACE_ERROR, "exchange-http-status", (json_int_t) http_status, "exchange-code", @@ -671,7 +671,7 @@ wtid_cb (void *cls, (tcc->tctx, MHD_HTTP_INTERNAL_SERVER_ERROR, TALER_MHD_make_error - (TALER_EC_DEPOSITS_GET_DB_FETCH_FAILED, + (TALER_EC_TRACK_TRANSACTION_DB_FETCH_FAILED, "Fail to query database about proofs")); return; } @@ -689,7 +689,7 @@ wtid_cb (void *cls, TALER_MHD_make_json_pack ("{s:I, s:s, s:O, s:o, s:o}", "code", (json_int_t) - TALER_EC_DEPOSITS_GET_CONFLICTING_REPORTS, + TALER_EC_TRACK_TRANSACTION_CONFLICTING_REPORTS, "error", "conflicting transfer data from exchange", "transaction_tracking_claim", json, @@ -1143,7 +1143,7 @@ MH_handler_track_transaction (struct TMH_RequestHandler *rh, GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR != qs); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_DEPOSITS_GET_DB_FETCH_TRANSACTION_ERROR, + TALER_EC_TRACK_TRANSACTION_DB_FETCH_TRANSACTION_ERROR, "Database error finding contract terms"); } if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs) @@ -1209,14 +1209,14 @@ MH_handler_track_transaction (struct TMH_RequestHandler *rh, GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR != tctx->qs); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_DEPOSITS_GET_DB_FETCH_PAYMENT_ERROR, + TALER_EC_TRACK_TRANSACTION_DB_FETCH_PAYMENT_ERROR, "Database error: failed to find payment data"); } if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs) { return TALER_MHD_reply_with_error (connection, MHD_HTTP_NOT_FOUND, - TALER_EC_DEPOSITS_GET_DB_NO_DEPOSITS_ERROR, + TALER_EC_TRACK_TRANSACTION_DB_NO_DEPOSITS_ERROR, "deposit data not found"); } *connection_cls = tctx; diff --git a/src/backend/taler-merchant-httpd_track-transfer.c b/src/backend/taler-merchant-httpd_track-transfer.c index 3ddae3f3..aadde40e 100644 --- a/src/backend/taler-merchant-httpd_track-transfer.c +++ b/src/backend/taler-merchant-httpd_track-transfer.c @@ -472,7 +472,7 @@ check_transfer (void *cls, = TALER_MHD_make_json_pack ( "{s:I, s:s, s:o, s:I, s:o, s:o, s:s, s:o, s:o}", "code", - (json_int_t) TALER_EC_TRANSFERS_GET_CONFLICTING_REPORTS, + (json_int_t) TALER_EC_TRACK_TRANSFER_CONFLICTING_REPORTS, "hint", "disagreement about deposit valuation", "exchange_deposit_proof", exchange_proof, @@ -567,7 +567,7 @@ check_wire_fee (struct TrackTransferContext *rctx, TALER_MHD_make_json_pack ( "{s:I, s:o, s:o, s:o, s:o, s:o, s:o, s:o, s:o, s:O}", "code", - (json_int_t) TALER_EC_TRANSFERS_GET_JSON_BAD_WIRE_FEE, + (json_int_t) TALER_EC_TRACK_TRANSFER_JSON_BAD_WIRE_FEE, "wire_fee", TALER_JSON_from_amount (wire_fee), "execution_time", GNUNET_JSON_from_time_abs ( execution_time), @@ -635,7 +635,7 @@ wire_transfer_cb (void *cls, TALER_MHD_make_json_pack ("{s:I, s:I, s:I, s:O}", "code", (json_int_t) - TALER_EC_TRANSFERS_GET_EXCHANGE_ERROR, + TALER_EC_TRACK_TRANSFER_EXCHANGE_ERROR, "exchange-code", (json_int_t) ec, "exchange-http-status", (json_int_t) http_status, @@ -666,7 +666,7 @@ wire_transfer_cb (void *cls, TALER_MHD_make_json_pack ("{s:I, s:s}", "code", (json_int_t) - TALER_EC_TRANSFERS_GET_DB_STORE_TRANSFER_ERROR, + TALER_EC_TRACK_TRANSFER_DB_STORE_TRANSFER_ERROR, "details", "failed to store response from exchange to local database")); return; @@ -714,7 +714,7 @@ wire_transfer_cb (void *cls, TALER_MHD_make_json_pack ("{s:I, s:s}", "code", (json_int_t) - TALER_EC_TRANSFERS_GET_DB_FETCH_DEPOSIT_ERROR, + TALER_EC_TRACK_TRANSFER_DB_FETCH_DEPOSIT_ERROR, "details", "failed to obtain deposit data from local database")); return; @@ -739,7 +739,7 @@ wire_transfer_cb (void *cls, TALER_MHD_make_json_pack ("{s:I, s:s, s:I, s:s}", "code", (json_int_t) - TALER_EC_TRANSFERS_GET_DB_INTERNAL_LOGIC_ERROR, + TALER_EC_TRACK_TRANSFER_DB_INTERNAL_LOGIC_ERROR, "details", "internal logic error", "line", (json_int_t) __LINE__, "file", __FILE__)); @@ -781,7 +781,7 @@ wire_transfer_cb (void *cls, TALER_MHD_make_json_pack ("{s:I, s:s}", "code", (json_int_t) - TALER_EC_TRANSFERS_GET_DB_STORE_COIN_ERROR, + TALER_EC_TRACK_TRANSFER_DB_STORE_COIN_ERROR, "details", "failed to store response from exchange to local database")); return; @@ -799,7 +799,7 @@ wire_transfer_cb (void *cls, resume_track_transfer_with_response (rctx, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_MHD_make_error (TALER_EC_TRANSFERS_GET_JSON_RESPONSE_ERROR, + TALER_MHD_make_error (TALER_EC_TRACK_TRANSFER_JSON_RESPONSE_ERROR, "Fail to elaborate the response.")); return; } @@ -842,7 +842,7 @@ process_track_transfer_with_exchange (void *cls, TALER_MHD_make_json_pack ("{s:I, s:s}", "code", (json_int_t) - TALER_EC_TRANSFERS_GET_REQUEST_ERROR, + TALER_EC_TRACK_TRANSFER_REQUEST_ERROR, "error", "failed to run /track/transfer on exchange")); } @@ -871,7 +871,7 @@ handle_track_transfer_timeout (void *cls) resume_track_transfer_with_response (rctx, MHD_HTTP_SERVICE_UNAVAILABLE, TALER_MHD_make_error ( - TALER_EC_TRANSFERS_GET_EXCHANGE_TIMEOUT, + TALER_EC_TRACK_TRANSFER_EXCHANGE_TIMEOUT, "exchange not reachable")); } @@ -898,7 +898,7 @@ proof_cb (void *cls, { rctx->response_code = MHD_HTTP_INTERNAL_SERVER_ERROR; rctx->response - = TALER_MHD_make_error (TALER_EC_TRANSFERS_GET_JSON_RESPONSE_ERROR, + = TALER_MHD_make_error (TALER_EC_TRACK_TRANSFER_JSON_RESPONSE_ERROR, "Fail to elaborate response."); return; } @@ -1049,7 +1049,7 @@ MH_handler_track_transfer (struct TMH_RequestHandler *rh, GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_TRANSFERS_GET_DB_FETCH_FAILED, + TALER_EC_TRACK_TRANSFER_DB_FETCH_FAILED, "Fail to query database about proofs"); } if (0 != rctx->response_code) |