fix: need to init bls in manual

This commit is contained in:
Derrick Hammer 2023-09-16 11:20:14 -04:00
parent dc35711a75
commit d1e88ce87f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -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 {