diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-11-04 09:58:36 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-11-05 10:37:38 +0100 |
commit | 8d3742614550b6c1d7fe5b9a798faa587ac75357 (patch) | |
tree | a3a176baaf16d099c572adca5952744d0d7425de | |
parent | 8465b0f1d2895c8ec57321faa9e86e3420c75ae1 (diff) |
fix bug
-rw-r--r-- | src/exchange/taler-exchange-httpd_common_kyc.c | 5 | ||||
-rw-r--r-- | src/exchangedb/pg_get_kyc_rules.c | 2 |
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 index ae516abd4..42d771220 100644 --- 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 index 85f1f1abe..db07f98c1 100644 --- 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)" |