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-16 10:52:49 +00:00
|
|
|
deprecatedDisablePeerScorer = &cli.BoolFlag{
|
|
|
|
Name: "disable-peer-scorer",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2023-03-17 10:26:58 +00:00
|
|
|
deprecatedEnableReorgLateBlocks = &cli.BoolFlag{
|
|
|
|
Name: "enable-reorg-late-blocks",
|
|
|
|
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-16 10:52:49 +00:00
|
|
|
deprecatedDisablePeerScorer,
|
2023-03-17 10:26:58 +00:00
|
|
|
deprecatedEnableReorgLateBlocks,
|
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{}
|