prysm-pulse/shared/featureconfig/deprecated_flags.go
Radosław Kapka b0dff891fc
Invert enable-eth1data-majority-vote (#7362)
* make flag opt-out

* fix flags

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-26 17:36:47 +00:00

32 lines
804 B
Go

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,
}
deprecatedEnablePruningDepositProofs = &cli.BoolFlag{
Name: "enable-pruning-deposit-proofs",
Usage: deprecatedUsage,
Hidden: true,
}
deprecatedEnableEth1DataMajorityVote = &cli.BoolFlag{
Name: "enable-eth1-data-majority-vote",
Usage: deprecatedUsage,
Hidden: true,
}
)
var deprecatedFlags = []cli.Flag{
exampleDeprecatedFeatureFlag,
deprecatedEnablePruningDepositProofs,
deprecatedEnableEth1DataMajorityVote,
}