From 19c59eb18944bd6528983fec0f848143aed4742a Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 16 Sep 2023 11:04:03 -0400 Subject: [PATCH] fix: as a properly synced node may never hit the computed period at getCurrentPeriod... need to manually emit synced and call getLatestExecution --- src/client/client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/client.ts b/src/client/client.ts index 5db2691..42c601f 100644 --- a/src/client/client.ts +++ b/src/client/client.ts @@ -51,8 +51,9 @@ export default class Client extends BaseClient { ); this.latestCommittee = checkpoint.nextSyncCommittee.pubkeys; this.booted = true; + this.emit("synced"); - await super.sync(); + await this.getLatestExecution(false); } public async rpcCall(method: string, params: any) {