2020-10-13 06:38:41 +00:00
|
|
|
package featureconfig
|
|
|
|
|
|
|
|
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,
|
|
|
|
}
|
2020-10-19 18:22:44 +00:00
|
|
|
deprecatedEnablePruningDepositProofs = &cli.BoolFlag{
|
|
|
|
Name: "enable-pruning-deposit-proofs",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2020-10-26 17:36:47 +00:00
|
|
|
deprecatedEnableEth1DataMajorityVote = &cli.BoolFlag{
|
|
|
|
Name: "enable-eth1-data-majority-vote",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2020-10-13 06:38:41 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var deprecatedFlags = []cli.Flag{
|
|
|
|
exampleDeprecatedFeatureFlag,
|
2020-10-19 18:22:44 +00:00
|
|
|
deprecatedEnablePruningDepositProofs,
|
2020-10-26 17:36:47 +00:00
|
|
|
deprecatedEnableEth1DataMajorityVote,
|
2020-10-13 06:38:41 +00:00
|
|
|
}
|