fix: need to call our boot method

This commit is contained in:
Derrick Hammer 2023-09-16 12:12:30 -04:00
parent 3d4d24e90b
commit b3f8dba243
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,6 @@ export default class Client extends BaseClient {
);
this.latestCommittee = checkpoint.nextSyncCommittee.pubkeys;
if (this._latestPeriod + 1 === this.getCurrentPeriod()) {
this.booted = true;
this.emit("synced");
await init("herumi");
this._latestPeriod = this.getCurrentPeriod();
@ -69,6 +68,7 @@ export default class Client extends BaseClient {
} else {
await super.sync();
}
await this.boot();
}
public async rpcCall(method: string, params: any) {