exchange

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

commit eb9452f83903ac6e757e46e5cf225165feae2053
parent 9e46fcb6ea14e0a0039add6e52c05561e7f1016e
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  3 Nov 2026 22:55:32 +0100

more reasonable coin history bound

Diffstat:
Msrc/auditor/taler-helper-auditor-coins.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/auditor/taler-helper-auditor-coins.c b/src/auditor/taler-helper-auditor-coins.c @@ -73,10 +73,13 @@ struct SweepContext; /** * How many coin histories do we keep in RAM at any given point in time? - * Expect a few kB per coin history to be used. Used bound memory consumption - * of the auditor. Larger values reduce database accesses. + * Expect a few kB per coin history to be used. All entries are dropped + * at the end of each pass, but within a pass an entry is only evicted when + * another coin hashes to the same slot: the number of slots is thus the + * actual bound on the memory consumption of the cache. Larger values + * reduce database accesses. */ -#define MAX_COIN_HISTORIES (16 * 1024 * 1024) +#define MAX_COIN_HISTORIES (64 * 1024) /** * Use a 1 day grace period to deal with clocks not being perfectly synchronized.