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-03-17 11:41:02 +00:00
|
|
|
deprecatedDisableVecHTR = &cli.BoolFlag{
|
|
|
|
Name: "disable-vectorized-htr",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2023-03-17 10:26:58 +00:00
|
|
|
deprecatedEnableReorgLateBlocks = &cli.BoolFlag{
|
|
|
|
Name: "enable-reorg-late-blocks",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2023-03-17 12:09:28 +00:00
|
|
|
deprecatedDisableGossipBatchAggregation = &cli.BoolFlag{
|
|
|
|
Name: "disable-gossip-batch-aggregation",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2023-05-16 15:43:15 +00:00
|
|
|
deprecatedBuildBlockParallel = &cli.BoolFlag{
|
|
|
|
Name: "build-block-parallel",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2023-06-29 02:49:21 +00:00
|
|
|
|
|
|
|
deprecatedEnableRegistrationCache = &cli.BoolFlag{
|
|
|
|
Name: "enable-registration-cache",
|
|
|
|
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-03-17 11:41:02 +00:00
|
|
|
deprecatedDisableVecHTR,
|
2023-03-17 10:26:58 +00:00
|
|
|
deprecatedEnableReorgLateBlocks,
|
2023-03-17 12:09:28 +00:00
|
|
|
deprecatedDisableGossipBatchAggregation,
|
2023-05-16 15:43:15 +00:00
|
|
|
deprecatedBuildBlockParallel,
|
2023-06-29 02:49:21 +00:00
|
|
|
deprecatedEnableRegistrationCache,
|
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-03-16 11:54:02 +00:00
|
|
|
var deprecatedBeaconFlags = []cli.Flag{}
|