From a95becbfb6354678bdcd6f61a57ef9f8370ea0d6 Mon Sep 17 00:00:00 2001 From: hatim boufnichel Date: Sat, 30 Mar 2024 21:05:22 +0100 Subject: [PATCH] fix log --- src/services/main/watchdog.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/services/main/watchdog.ts b/src/services/main/watchdog.ts index 2d6786c3..e1d783db 100644 --- a/src/services/main/watchdog.ts +++ b/src/services/main/watchdog.ts @@ -77,6 +77,9 @@ export class Watchdog { this.log("Difference is too big for an update, locking outgoing operations") return true } + } else if (deltaLnd === deltaUsers) { + this.log("LND and users balance went both DOWN consistently") + return false } else { this.log("LND balance decreased less than users balance with a difference of", result.absoluteDiff, "sats, could be caused by data loss, or liquidity injection") return false @@ -89,6 +92,9 @@ export class Watchdog { this.log("Difference is too big for an update, locking outgoing operations") return true } + } else if (deltaLnd === deltaUsers) { + this.log("LND and users balance went both UP consistently") + return false } else { this.log("LND balance increased more than users balance with a difference of", result.absoluteDiff, "sats, could be caused by data loss, or liquidity injection") return false