commit 9ab71001bec6b8e2c8af9e2d13f00ea2ac2dcbda
parent 47ecd9d1e74de23eeac06f5429433d52b0ab18d4
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 26 Feb 2026 12:28:05 +0100
clean up patch for #11151
Diffstat:
4 files changed, 2 insertions(+), 36 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_kyc-check.c b/src/exchange/taler-exchange-httpd_kyc-check.c
@@ -251,14 +251,6 @@ TEH_handler_kyc_check (
TALER_HTTP_HEADER_ACCOUNT_OWNER_PUBKEY,
&kyp->account_pub,
kyp->have_pub);
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Looking for KYCAUTH transfer for account %s\n",
- TALER_B2S (&kyp->h_payto));
- if (kyp->have_pub)
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Looking for KYCAUTH transfer for public key %s\n",
- TALER_B2S (&kyp->account_pub));
-
TALER_MHD_parse_request_timeout (rc->connection,
&kyp->timeout);
{
diff --git a/src/exchangedb/exchange_do_kycauth_in_insert.sql b/src/exchangedb/exchange_do_kycauth_in_insert.sql
@@ -32,8 +32,6 @@ DECLARE
my_is_wallet BOOL;
BEGIN
- RAISE WARNING 'Adding KYCAUTH-IN with pub % ', in_account_pub;
- RAISE WARNING 'Adding KYCAUTH-IN from % ', in_h_normalized_payto;
INSERT INTO kycauths_in
(account_pub
,wire_reference
@@ -77,7 +75,6 @@ BEGIN
in_h_normalized_payto
,my_is_wallet
,in_account_pub);
- RAISE WARNING 'Added new KYC TARGET for %: %', in_account_pub, FOUND;
INSERT INTO wire_targets
(wire_target_h_payto
,h_normalized_payto
diff --git a/src/exchangedb/exchange_do_lookup_kyc_requirement_by_row.sql b/src/exchangedb/exchange_do_lookup_kyc_requirement_by_row.sql
@@ -37,8 +37,6 @@ DECLARE
my_ok BOOL;
BEGIN
-RAISE WARNING 'LOOKING UP kyc_target for %', in_h_normalized_payto;
-
-- Find the access token and the current account public key.
SELECT access_token
,target_pub
@@ -49,7 +47,7 @@ SELECT access_token
IF NOT FOUND
THEN
- RAISE WARNING 'kyc_target % not found', in_h_normalized_payto;
+ -- RAISE WARNING 'kyc_target % not found', in_h_normalized_payto;
-- Given that we don't recognize the normalized payto, there is no
-- chance that we can match the incoming public key against anything,
-- so this is a 404-case.
@@ -58,8 +56,6 @@ THEN
RETURN;
END IF;
-RAISE WARNING 'CHECK: % %=%s', in_account_pub IS NOT NULL, my_wtrec.target_pub, in_account_pub;
-
-- It is definitively OK if we were given a public key AND it matches
my_ok = (in_account_pub IS NOT NULL) AND
(my_wtrec.target_pub = in_account_pub);
@@ -67,7 +63,6 @@ my_ok = (in_account_pub IS NOT NULL) AND
IF ( (NOT my_ok) AND
(in_account_pub IS NOT NULL) )
THEN
- RAISE WARNING 'target_pub % does not match', in_account_pub;
-- We were given an in_account_pub, but it did not match the
-- target pub.
-- Try to see if the in_account_pub appears in ANY reserve_in
@@ -82,7 +77,6 @@ THEN
THEN
my_wtrec.target_pub = in_account_pub;
my_ok = TRUE;
- RAISE WARNING 'target_pub DID match regular wire transfer';
ELSE
PERFORM
FROM kycauths_in ki
@@ -94,15 +88,6 @@ THEN
THEN
my_wtrec.target_pub = in_account_pub;
my_ok = TRUE;
- RAISE WARNING 'target_pub DID match KYC AUTH transfer';
- ELSE
- RAISE WARNING 'target_pub does not match incoming transfer from %', in_h_normalized_payto;
-
- PERFORM
- FROM kycauths_in
- WHERE account_pub=in_account_pub;
- RAISE WARNING 'target_pub does not match ANY incoming transfer: %', FOUND;
-
END IF;
END IF;
END IF;
@@ -111,7 +96,7 @@ IF (NOT my_ok AND
( (in_account_pub IS NOT NULL) OR
(my_wtrec.target_pub IS NULL) ) )
THEN
- RAISE WARNING 'No match and target_pub is NOT NULL';
+ -- RAISE WARNING 'No match and target_pub is NOT NULL';
-- We failed to find a matching public key for in_account_pub, and
-- either the client provided a specific one to match OR
-- we could not return any one that could even work, which means
@@ -130,8 +115,6 @@ out_is_wallet = my_wtrec.is_wallet;
out_account_pub = my_wtrec.target_pub;
out_access_token = my_wtrec.access_token;
--- RAISE WARNING 'account_pub established, checking measures for %', out_access_token;
-
-- Check if there are active measures for the account.
PERFORM
FROM legitimization_measures
diff --git a/src/exchangedb/pg_kycauth_in_insert.c b/src/exchangedb/pg_kycauth_in_insert.c
@@ -44,12 +44,6 @@ TEH_PG_kycauth_in_insert (
&h_full_payto);
TALER_full_payto_normalize_and_hash (debit_account_uri,
&h_normalized_payto);
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Adding KYCAUTH transfer for account %s\n",
- TALER_B2S (&h_normalized_payto));
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Adding KYCAUTH transfer for public key %s\n",
- TALER_B2S (account_pub));
{
struct TALER_KycCompletedEventP rep = {
.header.size = htons (sizeof (rep)),