diff --git a/packages/beacon-node/package.json b/packages/beacon-node/package.json index 7a773f5252d0..3fb5572683a8 100644 --- a/packages/beacon-node/package.json +++ b/packages/beacon-node/package.json @@ -131,6 +131,7 @@ "@multiformats/multiaddr": "^11.0.0", "@types/datastore-level": "^3.0.0", "buffer-xor": "^2.0.2", + "c-kzg": "^1.0.9", "cross-fetch": "^3.1.4", "datastore-core": "^8.0.1", "datastore-level": "^9.0.1", diff --git a/packages/beacon-node/test/spec/presets/fork_choice.ts b/packages/beacon-node/test/spec/presets/fork_choice.ts index 7055d8854a98..e6f381b0dd74 100644 --- a/packages/beacon-node/test/spec/presets/fork_choice.ts +++ b/packages/beacon-node/test/spec/presets/fork_choice.ts @@ -24,6 +24,7 @@ import {getEmptyBlobsSidecar} from "../../../src/util/blobs.js"; import {ZERO_HASH_HEX} from "../../../src/constants/constants.js"; import {PowMergeBlock} from "../../../src/eth1/interface.js"; import {assertCorrectProgressiveBalances} from "../config.js"; +import {initCKZG, loadEthereumTrustedSetup} from "../../../src/util/kzg.js"; /* eslint-disable @typescript-eslint/naming-convention */ @@ -41,6 +42,9 @@ export const forkChoiceTest = (opts: {onlyPredefinedResponses: boolean}): TestRu ) => { return { testFunction: async (testcase) => { + await initCKZG(); + loadEthereumTrustedSetup(); + const {steps, anchorState} = testcase; const currentSlot = anchorState.slot; const config = getConfig(fork);