fix: as a properly synced node may never hit the computed period at getCurrentPeriod... need to manually emit synced and call getLatestExecution

This commit is contained in:
Derrick Hammer 2023-09-16 11:04:03 -04:00
parent 2de960ce28
commit 19c59eb189
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -51,8 +51,9 @@ export default class Client extends BaseClient {
); );
this.latestCommittee = checkpoint.nextSyncCommittee.pubkeys; this.latestCommittee = checkpoint.nextSyncCommittee.pubkeys;
this.booted = true; this.booted = true;
this.emit("synced");
await super.sync(); await this.getLatestExecution(false);
} }
public async rpcCall(method: string, params: any) { public async rpcCall(method: string, params: any) {