diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-08-17 01:54:01 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-08-17 01:54:01 +0200 |
commit | 5ff600fed792919938facfae07be3a73cb4bfb36 (patch) | |
tree | 8f355d4f27b983316b69a6e1f9d32104577f1cf4 /src/wallet.ts | |
parent | 9e3a26ca70e77265f74527eb183c3f80b6531a97 (diff) |
start with an actual wallet cli
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 3 |
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; |