diff options
Diffstat (limited to 'src/exchangedb/pg_get_kyc_rules.c')
-rw-r--r-- | src/exchangedb/pg_get_kyc_rules.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)" |