refactor: have isSynced check the period and the block

This commit is contained in:
Derrick Hammer 2023-07-13 04:32:18 -04:00
parent 661e146636
commit f68688ab61
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,10 @@ export default abstract class BaseClient {
}
public get isSynced() {
return this._latestPeriod === this.getCurrentPeriod();
return (
this._latestPeriod === this.getCurrentPeriod() &&
this.getLastBlock() === this.getCurrentBlock()
);
}
public get store(): IStore {