Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schedule capella on mainnet! #5273

Merged
merged 3 commits into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/config/src/chainConfig/presets/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const chainConfig: ChainConfig = {

// Capella
CAPELLA_FORK_VERSION: b("0x03000000"),
CAPELLA_FORK_EPOCH: Infinity,
CAPELLA_FORK_EPOCH: 194048, // April 12 (epoch: 194048 slot: 6209536 UTC: 4/12/2023, 10:27:35 PM)

// DENEB
EIP4844_FORK_VERSION: b("0x04000000"),
Expand Down
7 changes: 5 additions & 2 deletions packages/validator/test/e2e/web3signer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ import {genesisData} from "@lodestar/config/networks";
import {getClient, routes} from "@lodestar/api";
import bls from "@chainsafe/bls";
import {ssz} from "@lodestar/types";
import {FAR_FUTURE_EPOCH} from "@lodestar/params";
import {ForkSeq} from "@lodestar/params";
import {Interchange, ISlashingProtection, Signer, SignerType, ValidatorStore} from "../../src/index.js";
import {IndicesService} from "../../src/services/indices.js";
import {testLogger} from "../utils/logger.js";

const web3signerVersion = "22.8.1";
/** Till what version is the image updated for signature verification */
const validTillSignatureForkSeq = ForkSeq.bellatrix;

/* eslint-disable no-console */

Expand Down Expand Up @@ -115,7 +117,8 @@ describe("web3signer signature test", function () {

for (const fork of config.forksAscendingEpochOrder) {
it(`signBlock ${fork.name}`, async function () {
if (fork.epoch === FAR_FUTURE_EPOCH) {
// Only test till the fork the signer version supports
if (ForkSeq[fork.name] > validTillSignatureForkSeq) {
this.skip();
}

Expand Down
4 changes: 0 additions & 4 deletions packages/validator/test/unit/utils/interopConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ export const prysmRopstenConfig = {
BELLATRIX_FORK_EPOCH: "750",
BELLATRIX_FORK_VERSION: "0x80000071",
BLS_WITHDRAWAL_PREFIX: "0x00",
CAPELLA_FORK_EPOCH: "18446744073709551615",
CAPELLA_FORK_VERSION: "0x03000000",
CHURN_LIMIT_QUOTIENT: "65536",
CONFIG_NAME: "ropsten",
DEPOSIT_CHAIN_ID: "3",
Expand Down Expand Up @@ -347,8 +345,6 @@ export const nimbusRopstenConfig = {
ALTAIR_FORK_EPOCH: "500",
BELLATRIX_FORK_VERSION: "0x80000071",
BELLATRIX_FORK_EPOCH: "750",
CAPELLA_FORK_VERSION: "0x03001020",
CAPELLA_FORK_EPOCH: "18446744073709551615",
SECONDS_PER_SLOT: "12",
SECONDS_PER_ETH1_BLOCK: "14",
MIN_VALIDATOR_WITHDRAWABILITY_DELAY: "256",
Expand Down