aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-08-05 00:09:09 +0200
committerChristian Grothoff <christian@grothoff.org>2024-08-05 00:09:09 +0200
commitc93d1d9df27f8f873bdd3c693558319175ebf631 (patch)
tree7f4b4076327744dc4dff9fd6d053dce1a20945a8
parent7d5e5978add17a6ba280d1e9998f1ee9f2cd4ede (diff)
limit join to active outcomes
-rw-r--r--src/exchangedb/pg_lookup_kyc_requirement_by_row.c3
-rw-r--r--src/testing/testing_api_cmd_exec_aggregator.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/exchangedb/pg_lookup_kyc_requirement_by_row.c b/src/exchangedb/pg_lookup_kyc_requirement_by_row.c
index 457d8c963..f66627508 100644
--- a/src/exchangedb/pg_lookup_kyc_requirement_by_row.c
+++ b/src/exchangedb/pg_lookup_kyc_requirement_by_row.c
@@ -80,7 +80,8 @@ TEH_PG_lookup_kyc_requirement_by_row (
" USING (access_token)"
" LEFT JOIN legitimization_outcomes lo"
" ON (wt.wire_target_h_payto = lo.h_payto)"
- " WHERE legitimization_measure_serial_id=$1;");
+ " WHERE legitimization_measure_serial_id=$1"
+ " AND lo.is_active;");
return GNUNET_PQ_eval_prepared_singleton_select (
pg->conn,
"lookup_kyc_requirement_by_row",
diff --git a/src/testing/testing_api_cmd_exec_aggregator.c b/src/testing/testing_api_cmd_exec_aggregator.c
index 1f05576ff..0f3cc1e14 100644
--- a/src/testing/testing_api_cmd_exec_aggregator.c
+++ b/src/testing/testing_api_cmd_exec_aggregator.c
@@ -72,6 +72,7 @@ aggregator_run (void *cls,
"taler-exchange-aggregator",
"taler-exchange-aggregator",
"-c", as->config_filename,
+ "-L", "INFO",
"-t", /* exit when done */
(as->kyc_on)
? NULL