From d3282871328fadd3978ba1300f897a64ead62712 Mon Sep 17 00:00:00 2001 From: boufni95 Date: Wed, 26 Jun 2024 19:27:32 +0200 Subject: [PATCH] fix --- src/services/main/watchdog.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/main/watchdog.ts b/src/services/main/watchdog.ts index 963a56e9..52102d8c 100644 --- a/src/services/main/watchdog.ts +++ b/src/services/main/watchdog.ts @@ -48,7 +48,7 @@ export class Watchdog { setTimeout(() => { this.log("Provider did not become ready in time, starting without it") res('failed') - }, 5000) + }, 60 * 1000) }) ]) @@ -59,6 +59,7 @@ export class Watchdog { await this.StartWatching(providerBalance) } StartWatching = async (providerBalance: number) => { + this.log("Starting watchdog") this.startedAtUnix = Math.floor(Date.now() / 1000) const totalUsersBalance = await this.storage.paymentStorage.GetTotalUsersBalance() this.initialLndBalance = await this.getTotalLndBalance(totalUsersBalance, providerBalance)