From 4ea12e34b6a1f7be73655fef9963690e021d0649 Mon Sep 17 00:00:00 2001 From: g11tech Date: Mon, 12 Jun 2023 20:18:57 +0530 Subject: [PATCH] feat: update specs to v1.4.0-alpha.2 (#5630) * feat: update specs to v1.4.0-alpha.2 * update e2e test for config matching --- packages/beacon-node/test/spec/specTestVersioning.ts | 2 +- packages/params/src/presets/mainnet.ts | 2 +- packages/params/src/presets/minimal.ts | 2 +- packages/params/test/e2e/ensure-config-is-synced.test.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/beacon-node/test/spec/specTestVersioning.ts b/packages/beacon-node/test/spec/specTestVersioning.ts index 06973ffb9c1..34e6ae0d906 100644 --- a/packages/beacon-node/test/spec/specTestVersioning.ts +++ b/packages/beacon-node/test/spec/specTestVersioning.ts @@ -15,7 +15,7 @@ import {DownloadTestsOptions} from "@lodestar/spec-test-util"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); export const ethereumConsensusSpecsTests: DownloadTestsOptions = { - specVersion: "v1.4.0-alpha.1", + specVersion: "v1.4.0-alpha.2", // Target directory is the host package root: 'packages/*/spec-tests' outputDir: path.join(__dirname, "../../spec-tests"), specTestsRepoUrl: "https://github.com/ethereum/consensus-spec-tests", diff --git a/packages/params/src/presets/mainnet.ts b/packages/params/src/presets/mainnet.ts index c6c6a9413d5..f29b1668ac4 100644 --- a/packages/params/src/presets/mainnet.ts +++ b/packages/params/src/presets/mainnet.ts @@ -114,5 +114,5 @@ export const mainnetPreset: BeaconPreset = { // https://github.com/ethereum/consensus-specs/blob/dev/presets/mainnet/eip4844.yaml FIELD_ELEMENTS_PER_BLOB: 4096, MAX_BLOB_COMMITMENTS_PER_BLOCK: 4096, - MAX_BLOBS_PER_BLOCK: 4, + MAX_BLOBS_PER_BLOCK: 6, }; diff --git a/packages/params/src/presets/minimal.ts b/packages/params/src/presets/minimal.ts index 2c0878d95eb..34d69004511 100644 --- a/packages/params/src/presets/minimal.ts +++ b/packages/params/src/presets/minimal.ts @@ -121,5 +121,5 @@ export const minimalPreset: BeaconPreset = { // https://github.com/ethereum/consensus-specs/blob/dev/presets/minimal/eip4844.yaml FIELD_ELEMENTS_PER_BLOB: 4, MAX_BLOB_COMMITMENTS_PER_BLOCK: 16, - MAX_BLOBS_PER_BLOCK: 4, + MAX_BLOBS_PER_BLOCK: 6, }; diff --git a/packages/params/test/e2e/ensure-config-is-synced.test.ts b/packages/params/test/e2e/ensure-config-is-synced.test.ts index d8af9acfb17..c1108f2862e 100644 --- a/packages/params/test/e2e/ensure-config-is-synced.test.ts +++ b/packages/params/test/e2e/ensure-config-is-synced.test.ts @@ -8,7 +8,7 @@ import {loadConfigYaml} from "../yaml.js"; // Not e2e, but slow. Run with e2e tests /** https://github.com/ethereum/consensus-specs/releases */ -const specConfigCommit = "v1.4.0-alpha.1"; +const specConfigCommit = "v1.4.0-alpha.2"; describe("Ensure config is synced", function () { this.timeout(60 * 1000);