2021-09-15 01:18:39 +00:00
|
|
|
package features
|
2020-10-13 06:38:41 +00:00
|
|
|
|
|
|
|
import "github.com/urfave/cli/v2"
|
|
|
|
|
|
|
|
// Deprecated flags list.
|
|
|
|
const deprecatedUsage = "DEPRECATED. DO NOT USE."
|
|
|
|
|
|
|
|
var (
|
|
|
|
// To deprecate a feature flag, first copy the example below, then insert deprecated flag in `deprecatedFlags`.
|
|
|
|
exampleDeprecatedFeatureFlag = &cli.StringFlag{
|
|
|
|
Name: "name",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2023-10-04 01:44:31 +00:00
|
|
|
deprecatedEnableOptionalEngineMethods = &cli.BoolFlag{
|
|
|
|
Name: "enable-optional-engine-methods",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2023-10-05 13:45:11 +00:00
|
|
|
deprecatedDisableBuildBlockParallel = &cli.BoolFlag{
|
|
|
|
Name: "disable-build-block-parallel",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2024-01-03 14:46:58 +00:00
|
|
|
deprecatedDisableReorgLateBlocks = &cli.BoolFlag{
|
|
|
|
Name: "disable-reorg-late-blocks",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2024-01-05 04:38:04 +00:00
|
|
|
deprecatedDisableOptionalEngineMethods = &cli.BoolFlag{
|
|
|
|
Name: "disable-optional-engine-methods",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2024-01-06 07:29:06 +00:00
|
|
|
deprecatedDisableAggregateParallel = &cli.BoolFlag{
|
|
|
|
Name: "disable-aggregate-parallel",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2024-01-30 05:15:52 +00:00
|
|
|
deprecatedEnableEIP4881 = &cli.BoolFlag{
|
|
|
|
Name: "enable-eip-4881",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2024-01-31 10:27:26 +00:00
|
|
|
deprecatedVerboseSigVerification = &cli.BoolFlag{
|
|
|
|
Name: "enable-verbose-sig-verification",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2020-10-13 06:38:41 +00:00
|
|
|
)
|
|
|
|
|
2022-08-20 04:16:14 +00:00
|
|
|
// Deprecated flags for both the beacon node and validator client.
|
2020-10-13 06:38:41 +00:00
|
|
|
var deprecatedFlags = []cli.Flag{
|
|
|
|
exampleDeprecatedFeatureFlag,
|
2023-10-04 01:44:31 +00:00
|
|
|
deprecatedEnableOptionalEngineMethods,
|
2023-10-05 13:45:11 +00:00
|
|
|
deprecatedDisableBuildBlockParallel,
|
2024-01-03 14:46:58 +00:00
|
|
|
deprecatedDisableReorgLateBlocks,
|
2024-01-05 04:38:04 +00:00
|
|
|
deprecatedDisableOptionalEngineMethods,
|
2024-01-06 07:29:06 +00:00
|
|
|
deprecatedDisableAggregateParallel,
|
2024-01-30 05:15:52 +00:00
|
|
|
deprecatedEnableEIP4881,
|
2024-01-31 10:27:26 +00:00
|
|
|
deprecatedVerboseSigVerification,
|
2022-08-20 04:16:14 +00:00
|
|
|
}
|
|
|
|
|
2022-08-30 15:47:36 +00:00
|
|
|
// deprecatedBeaconFlags contains flags that are still used by other components
|
|
|
|
// and therefore cannot be added to deprecatedFlags
|
2023-10-23 16:36:11 +00:00
|
|
|
var deprecatedBeaconFlags []cli.Flag
|