diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-02-04 16:01:46 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-02-04 16:01:46 +0100 |
commit | 19da4bd63868a4c46959198ef95e4a8e1af38b77 (patch) | |
tree | 1b77d20b085e9835e750091e66e3d510972a27ab /src/lib/exchange_api_lookup_aml_decisions.c | |
parent | c3243aa39f924921e8bf52fe6290e4d738d6a20e (diff) | |
download | exchange-19da4bd63868a4c46959198ef95e4a8e1af38b77.tar.xz |
add tests for new AML logic, plus related bugfixes
Diffstat (limited to 'src/lib/exchange_api_lookup_aml_decisions.c')
-rw-r--r-- | src/lib/exchange_api_lookup_aml_decisions.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/exchange_api_lookup_aml_decisions.c b/src/lib/exchange_api_lookup_aml_decisions.c index da17aa784..3b1db4556 100644 --- a/src/lib/exchange_api_lookup_aml_decisions.c +++ b/src/lib/exchange_api_lookup_aml_decisions.c @@ -202,6 +202,12 @@ handle_lookup_finished (void *cls, /* This should never happen, either us or the exchange is buggy (or API version conflict); just pass JSON reply to the application */ break; + case MHD_HTTP_FORBIDDEN: + lr.hr.ec = TALER_JSON_get_error_code (j); + lr.hr.hint = TALER_JSON_get_error_hint (j); + /* Nothing really to verify, exchange says this coin was not melted; we + should pass the JSON reply to the application */ + break; case MHD_HTTP_NOT_FOUND: lr.hr.ec = TALER_JSON_get_error_code (j); lr.hr.hint = TALER_JSON_get_error_hint (j); @@ -220,7 +226,7 @@ handle_lookup_finished (void *cls, lr.hr.ec = TALER_JSON_get_error_code (j); lr.hr.hint = TALER_JSON_get_error_hint (j); GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Unexpected response code %u/%d for exchange link\n", + "Unexpected response code %u/%d for lookup AML decisions\n", (unsigned int) response_code, (int) lr.hr.ec); break; @@ -279,7 +285,7 @@ TALER_EXCHANGE_lookup_aml_decisions ( *end = '\0'; GNUNET_snprintf (arg_str, sizeof (arg_str), - "/aml/%s/decisions/%s", + "aml/%s/decisions/%s", pub_str, state_str); } |