fix: need to call our boot method
This commit is contained in:
parent
3d4d24e90b
commit
b3f8dba243
|
@ -59,7 +59,6 @@ export default class Client extends BaseClient {
|
||||||
);
|
);
|
||||||
this.latestCommittee = checkpoint.nextSyncCommittee.pubkeys;
|
this.latestCommittee = checkpoint.nextSyncCommittee.pubkeys;
|
||||||
if (this._latestPeriod + 1 === this.getCurrentPeriod()) {
|
if (this._latestPeriod + 1 === this.getCurrentPeriod()) {
|
||||||
this.booted = true;
|
|
||||||
this.emit("synced");
|
this.emit("synced");
|
||||||
await init("herumi");
|
await init("herumi");
|
||||||
this._latestPeriod = this.getCurrentPeriod();
|
this._latestPeriod = this.getCurrentPeriod();
|
||||||
|
@ -69,6 +68,7 @@ export default class Client extends BaseClient {
|
||||||
} else {
|
} else {
|
||||||
await super.sync();
|
await super.sync();
|
||||||
}
|
}
|
||||||
|
await this.boot();
|
||||||
}
|
}
|
||||||
|
|
||||||
public async rpcCall(method: string, params: any) {
|
public async rpcCall(method: string, params: any) {
|
||||||
|
|
Loading…
Reference in New Issue