From d1e88ce87fa908ca47c176937decd5be96456b0c Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 16 Sep 2023 11:20:14 -0400 Subject: [PATCH] fix: need to init bls in manual --- src/client/client.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/client.ts b/src/client/client.ts index 7338aa3..7efcac4 100644 --- a/src/client/client.ts +++ b/src/client/client.ts @@ -3,6 +3,7 @@ import { IProver, IVerifyingProviderConstructor } from "#interfaces.js"; import { IClientVerifyingProvider } from "#client/verifyingProvider.js"; import { LightClientUpdate } from "#types.js"; import { computeSyncPeriodAtSlot } from "@lodestar/light-client/utils"; +import {init} from "@chainsafe/bls/switchable.js"; interface Config extends BaseClientOptions { prover: IProver; @@ -53,6 +54,7 @@ export default class Client extends BaseClient { if (this._latestPeriod + 1 === this.getCurrentPeriod()) { this.booted = true; this.emit("synced"); + await init("herumi"); await this.getLatestExecution(false); } else {