aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-01-14 18:04:17 +0100
committerFlorian Dold <florian@dold.me>2021-01-14 18:04:17 +0100
commit93633ac6838e7936e894d15e736ab89942f0f3b3 (patch)
tree8a4e995b0c948340f426da563406dfd835311428
parent19eb72e277de89600506c2c7d1f14487ebe6408e (diff)
logging
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts4
1 files 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
index ffcc5ade6..936b53954 100644
--- 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`,
);
}
}