diff options
-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)" |