Skip to content

Commit

Permalink
Fix coreSynchronized
Browse files Browse the repository at this point in the history
  • Loading branch information
everoddandeven committed Nov 12, 2024
1 parent 8eea783 commit 3cb1e46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/DaemonInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3cb1e46

Please sign in to comment.