commit 93633ac6838e7936e894d15e736ab89942f0f3b3
parent 19eb72e277de89600506c2c7d1f14487ebe6408e
Author: Florian Dold <florian@dold.me>
Date: Thu, 14 Jan 2021 18:04:17 +0100
logging
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -569,7 +569,7 @@ export async function updateWithdrawalDenoms(
);
const now = getTimestampNow();
for (const denom of nextDenominations) {
- const started = timestampCmp(now, denom.stampStart) >= 0;
+ const startDelay = getDurationRemaining(denom.stampStart, now);
const lastPossibleWithdraw = timestampSubtractDuraction(
denom.stampExpireWithdraw,
{ d_ms: 50 * 1000 },
@@ -580,7 +580,7 @@ export async function updateWithdrawalDenoms(
denom.isRevoked
} offered ${denom.isOffered} remaining ${
(remaining.d_ms as number) / 1000
- }sec started ${started}`,
+ }sec withdrawDelay ${(startDelay.d_ms as number) / 1000}sec`,
);
}
}