exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 3c66d206b8e1031ec47707d6dd9387c6224f87fe
parent 3594f045b9787a7e2b21564f5aaf36fe76dfb5d2
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 13 Oct 2026 00:02:49 +0200

make sure to return latest attributes first

Diffstat:
Msrc/exchangedb/iterate_kyc_attributes.c | 3++-
Msrc/include/exchange-database/iterate_kyc_attributes.h | 3++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/exchangedb/iterate_kyc_attributes.c b/src/exchangedb/iterate_kyc_attributes.c @@ -141,7 +141,8 @@ TALER_EXCHANGEDB_iterate_kyc_attributes ( " FROM kyc_attributes ka" " JOIN legitimization_processes lp" " ON (ka.legitimization_serial = lp.legitimization_process_serial_id)" - " WHERE ka.h_payto=$1"); + " WHERE ka.h_payto=$1" + " ORDER BY ka.collection_time DESC"); qs = GNUNET_PQ_eval_prepared_multi_select ( pg->conn, "iterate_kyc_attributes", diff --git a/src/include/exchange-database/iterate_kyc_attributes.h b/src/include/exchange-database/iterate_kyc_attributes.h @@ -83,7 +83,8 @@ typedef void * * @param pg the database context * @param h_payto account for which the attribute data is stored - * @param cb callback to invoke on each match + * @param cb callback to invoke on each match, most recently + * collected attributes first * @param cb_cls closure for @a cb * @return database transaction status */