This commit is contained in:
Florian Dold 2021-01-14 18:04:17 +01:00
parent 19eb72e277
commit 93633ac683
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -569,7 +569,7 @@ export async function updateWithdrawalDenoms(
); );
const now = getTimestampNow(); const now = getTimestampNow();
for (const denom of nextDenominations) { for (const denom of nextDenominations) {
const started = timestampCmp(now, denom.stampStart) >= 0; const startDelay = getDurationRemaining(denom.stampStart, now);
const lastPossibleWithdraw = timestampSubtractDuraction( const lastPossibleWithdraw = timestampSubtractDuraction(
denom.stampExpireWithdraw, denom.stampExpireWithdraw,
{ d_ms: 50 * 1000 }, { d_ms: 50 * 1000 },
@ -580,7 +580,7 @@ export async function updateWithdrawalDenoms(
denom.isRevoked denom.isRevoked
} offered ${denom.isOffered} remaining ${ } offered ${denom.isOffered} remaining ${
(remaining.d_ms as number) / 1000 (remaining.d_ms as number) / 1000
}sec started ${started}`, }sec withdrawDelay ${(startDelay.d_ms as number) / 1000}sec`,
); );
} }
} }