aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallet.ts')
-rw-r--r--src/wallet.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet.ts b/src/wallet.ts
index ffdb60fa3..c8dd56bbd 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -3413,11 +3413,14 @@ export class Wallet {
.deleteIf(Stores.exchanges, gcExchange)
.finish();
+ // FIXME: check if this is correct!
const gcDenominations = (d: DenominationRecord, n: number) => {
if (nowSec > getTalerStampSec(d.stampExpireDeposit)!) {
+ console.log("garbage-collecting denomination due to expiration");
return true;
}
if (activeExchanges.indexOf(d.exchangeBaseUrl) < 0) {
+ console.log("garbage-collecting denomination due to missing exchange");
return true;
}
return false;