commit 8d3742614550b6c1d7fe5b9a798faa587ac75357
parent 8465b0f1d2895c8ec57321faa9e86e3420c75ae1
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 4 Nov 2024 09:58:36 +0100
fix bug
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_common_kyc.c b/src/exchange/taler-exchange-httpd_common_kyc.c
@@ -1669,10 +1669,11 @@ legitimization_check_run (
break;
}
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "get_kyc_rules returned %d/%d/%d\n",
+ "get_kyc_rules returned %d/%d/%d/%d\n",
(int) qs,
! no_account_pub,
- ! no_reserve_pub);
+ ! no_reserve_pub,
+ NULL != jrules);
lch->lcr.kyc.have_account_pub
= ! no_account_pub;
diff --git a/src/exchangedb/pg_get_kyc_rules.c b/src/exchangedb/pg_get_kyc_rules.c
@@ -79,7 +79,7 @@ TEH_PG_get_kyc_rules (
" LEFT JOIN reserves_in ri"
" ON (ri.wire_source_h_payto = wt.wire_target_h_payto)"
" LEFT JOIN legitimization_outcomes lo"
- " ON (lo.h_payto = wt.wire_target_h_payto)"
+ " ON (lo.h_payto = wt.h_normalized_payto)"
" WHERE wt.h_normalized_payto=$1"
" AND COALESCE(lo.expiration_time >= $2, TRUE)"
" AND COALESCE(lo.is_active, TRUE)"