diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-09-13 11:09:40 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-09-13 11:09:40 +0200 |
commit | 9b045f89fe1ff3baf6cb99ff01abdefa5d91203e (patch) | |
tree | fa1284ee5c1b7899fe2e90d55853d52bcb30b572 /src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c | |
parent | 43d8acb894f758250ac757af65b72892a212515d (diff) |
-nicer SQL
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c b/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c index ca5688bd..33be692d 100644 --- a/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c +++ b/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c @@ -40,13 +40,13 @@ * How long should clients cache a KYC failure response? */ #define EXPIRATION_KYC_FAILURE GNUNET_TIME_relative_multiply ( \ - GNUNET_TIME_UNIT_MINUTES, 5) + GNUNET_TIME_UNIT_MINUTES, 5) /** * How long should clients cache a KYC success response? */ #define EXPIRATION_KYC_SUCCESS GNUNET_TIME_relative_multiply ( \ - GNUNET_TIME_UNIT_HOURS, 1) + GNUNET_TIME_UNIT_HOURS, 1) /** @@ -647,7 +647,6 @@ determine_eligible_accounts ( /* For all accounts of the exchange */ for (unsigned int i = 0; i<keys->accounts_len; i++) { - /* FIXME: move into convenience function in libtalerexchange? See also taler-merchant-kyccheck.c! */ const struct TALER_EXCHANGE_WireAccount *account = &keys->accounts[i]; const char *exchange_account_payto @@ -953,6 +952,11 @@ get_instances_ID_kyc ( GNUNET_break (0 == json_array_clear (kc->kycs_data)); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Checking KYC status for %s (%d/%s)\n", + mi->settings.id, + kc->have_h_wire, + kc->exchange_url); qs = TMH_db->account_kyc_get_status ( TMH_db->cls, mi->settings.id, @@ -962,6 +966,9 @@ get_instances_ID_kyc ( kc->exchange_url, &kyc_status_cb, kc); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Got status %d\n", + (int) qs); if (qs < 0) { /* Database error */ |