From 3cb1e4624b8955f267b6da4e91e5e5bca775ebc8 Mon Sep 17 00:00:00 2001 From: everoddandeven Date: Tue, 12 Nov 2024 23:44:58 +0100 Subject: [PATCH] Fix coreSynchronized --- src/common/DaemonInfo.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/DaemonInfo.ts b/src/common/DaemonInfo.ts index 971824a..dc8bb17 100644 --- a/src/common/DaemonInfo.ts +++ b/src/common/DaemonInfo.ts @@ -64,7 +64,9 @@ export class DaemonInfo { } public get coreSynchronized(): boolean { - return this.wasBoostrapEverUsed ? this.heightWithoutBootstrap == this.targetHeight : this.synchronized; + const targetHeight = this.targetHeight == 0 ? this.height : this.targetHeight; + + return this.wasBoostrapEverUsed ? this.heightWithoutBootstrap == targetHeight : this.synchronized; } constructor(