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:
parent
2de960ce28
commit
19c59eb189
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue