mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
5243ca7d64
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
37 lines
996 B
Go
37 lines
996 B
Go
package features
|
|
|
|
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,
|
|
}
|
|
deprecatedDisablePeerScorer = &cli.BoolFlag{
|
|
Name: "disable-peer-scorer",
|
|
Usage: deprecatedUsage,
|
|
Hidden: true,
|
|
}
|
|
deprecatedEnableReorgLateBlocks = &cli.BoolFlag{
|
|
Name: "enable-reorg-late-blocks",
|
|
Usage: deprecatedUsage,
|
|
Hidden: true,
|
|
}
|
|
)
|
|
|
|
// Deprecated flags for both the beacon node and validator client.
|
|
var deprecatedFlags = []cli.Flag{
|
|
exampleDeprecatedFeatureFlag,
|
|
deprecatedDisablePeerScorer,
|
|
deprecatedEnableReorgLateBlocks,
|
|
}
|
|
|
|
// deprecatedBeaconFlags contains flags that are still used by other components
|
|
// and therefore cannot be added to deprecatedFlags
|
|
var deprecatedBeaconFlags = []cli.Flag{}
|