exchange

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

commit 20a7fc60c486342b5203ce9e1467bc111b51f47b
parent 343cee4373a64d2f56359be33ecc96f18c801b72
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  3 Nov 2026 22:57:41 +0100

keep list sorted

Diffstat:
Msrc/auditor/taler-helper-auditor-aggregation.c | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/auditor/taler-helper-auditor-aggregation.c b/src/auditor/taler-helper-auditor-aggregation.c @@ -1150,8 +1150,13 @@ get_wire_fee (struct AggregationContext *ac, "Wire fee is %s starting at %s\n", TALER_amount2s (&wfi->fees.wire), GNUNET_TIME_timestamp2s (wfi->start_date)); - if ((NULL == pos) || - (NULL == pos->prev)) + if (NULL == pos) + /* all cached fees start at or before @a timestamp, + so the new fee belongs at the end of the list */ + GNUNET_CONTAINER_DLL_insert_tail (ac->fee_head, + ac->fee_tail, + wfi); + else if (NULL == pos->prev) GNUNET_CONTAINER_DLL_insert (ac->fee_head, ac->fee_tail, wfi);