From 85c0dfe0c6b3c3c90878aa9316e06c93e3387cc7 Mon Sep 17 00:00:00 2001 From: "fletcher.fan" Date: Tue, 3 Feb 2026 17:48:32 +0800 Subject: [PATCH] add bls key fork height flag --- node/core/config.go | 4 ++++ node/flags/flags.go | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/node/core/config.go b/node/core/config.go index 1c85c045..8e58b85a 100644 --- a/node/core/config.go +++ b/node/core/config.go @@ -170,6 +170,10 @@ func (c *Config) SetCliContext(ctx *cli.Context) error { c.DevSequencer = ctx.GlobalBool(flags.DevSequencer.Name) } + if ctx.GlobalIsSet(flags.BlsKeyCheckForkHeight.Name) { + c.BlsKeyCheckForkHeight = ctx.GlobalUint64(flags.BlsKeyCheckForkHeight.Name) + } + // setup batch upgrade index and fork heights switch { case ctx.GlobalIsSet(flags.MainnetFlag.Name): diff --git a/node/flags/flags.go b/node/flags/flags.go index f692391c..8d0c140e 100644 --- a/node/flags/flags.go +++ b/node/flags/flags.go @@ -302,6 +302,12 @@ var ( Value: 26660, EnvVar: prefixEnvVar("METRICS_PORT"), } + + BlsKeyCheckForkHeight = cli.Uint64Flag{ + Name: "bls-key-check-fork-height", + Usage: "The height at which the BLS key check fork occurs", + EnvVar: prefixEnvVar("BLS_KEY_CHECK_FORK_HEIGHT"), + } ) var Flags = []cli.Flag{ @@ -368,4 +374,6 @@ var Flags = []cli.Flag{ MetricsServerEnable, MetricsPort, MetricsHostname, + + BlsKeyCheckForkHeight, }