refactor: have isSynced check the period and the block
This commit is contained in:
parent
661e146636
commit
f68688ab61
|
@ -58,7 +58,10 @@ export default abstract class BaseClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
public get isSynced() {
|
public get isSynced() {
|
||||||
return this._latestPeriod === this.getCurrentPeriod();
|
return (
|
||||||
|
this._latestPeriod === this.getCurrentPeriod() &&
|
||||||
|
this.getLastBlock() === this.getCurrentBlock()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public get store(): IStore {
|
public get store(): IStore {
|
||||||
|
|
Loading…
Reference in New Issue