commit b3c9c94a0cbcc693c0546d4d6598215e9afd0b89
parent b4c50db80a956c80e6428a9fc76d667d284e1962
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 1 Dec 2024 12:06:50 +0100
address FIXME
Diffstat:
1 file changed, 4 insertions(+), 13 deletions(-)
diff --git a/src/exchange/taler-exchange-aggregator.c b/src/exchange/taler-exchange-aggregator.c
@@ -527,19 +527,10 @@ legitimization_satisfied (struct AggregationUnit *au_active)
{
json_t *jrules;
- union TALER_AccountPublicKeyP account_pub;
- struct TALER_ReservePublicKeyP reserve_pub;
- bool no_account_pub;
- bool no_reserve_pub;
-
- /* FIXME: optimization potential: custom API to *just* get jrules... */
- qs = db_plugin->get_kyc_rules (db_plugin->cls,
- &au_active->h_normalized_payto,
- &no_account_pub,
- &account_pub,
- &no_reserve_pub,
- &reserve_pub,
- &jrules);
+
+ qs = db_plugin->get_kyc_rules2 (db_plugin->cls,
+ &au_active->h_normalized_payto,
+ &jrules);
if (qs < 0)
{
GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs);