commit 7222f220684d820f66467c732dec2eefa566ebb6
parent 12f9e8c08bc8987585e009bcee068a51351d30da
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 11 Oct 2026 14:31:51 +0200
do not GC denoms still used in refresh
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/exchangedb/gc.sql b/src/exchangedb/gc.sql
@@ -82,6 +82,9 @@ DELETE FROM denominations
(SELECT DISTINCT UNNEST(denom_serials)
FROM withdraw)
AND denominations_serial NOT IN
+ (SELECT DISTINCT UNNEST(denom_serials)
+ FROM refresh)
+ AND denominations_serial NOT IN
(SELECT DISTINCT denominations_serial
FROM known_coins
WHERE coin_pub IN