fix: need to init bls in manual
This commit is contained in:
parent
dc35711a75
commit
d1e88ce87f
|
@ -3,6 +3,7 @@ import { IProver, IVerifyingProviderConstructor } from "#interfaces.js";
|
||||||
import { IClientVerifyingProvider } from "#client/verifyingProvider.js";
|
import { IClientVerifyingProvider } from "#client/verifyingProvider.js";
|
||||||
import { LightClientUpdate } from "#types.js";
|
import { LightClientUpdate } from "#types.js";
|
||||||
import { computeSyncPeriodAtSlot } from "@lodestar/light-client/utils";
|
import { computeSyncPeriodAtSlot } from "@lodestar/light-client/utils";
|
||||||
|
import {init} from "@chainsafe/bls/switchable.js";
|
||||||
|
|
||||||
interface Config extends BaseClientOptions {
|
interface Config extends BaseClientOptions {
|
||||||
prover: IProver;
|
prover: IProver;
|
||||||
|
@ -53,6 +54,7 @@ export default class Client extends BaseClient {
|
||||||
if (this._latestPeriod + 1 === this.getCurrentPeriod()) {
|
if (this._latestPeriod + 1 === this.getCurrentPeriod()) {
|
||||||
this.booted = true;
|
this.booted = true;
|
||||||
this.emit("synced");
|
this.emit("synced");
|
||||||
|
await init("herumi");
|
||||||
|
|
||||||
await this.getLatestExecution(false);
|
await this.getLatestExecution(false);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue