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,
|
|
|
|
}
|
2021-02-01 11:18:24 +00:00
|
|
|
deprecatedEnableSyncBacktracking = &cli.StringFlag{
|
2020-12-03 15:43:26 +00:00
|
|
|
Name: "enable-sync-backtracking",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2021-02-01 11:18:24 +00:00
|
|
|
deprecatedDisableSyncBacktracking = &cli.StringFlag{
|
|
|
|
Name: "disable-sync-backtracking",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2021-02-16 15:27:37 +00:00
|
|
|
deprecatedDisablePruningDepositProofs = &cli.BoolFlag{
|
|
|
|
Name: "disable-pruning-deposit-proofs",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
|
|
|
deprecatedDisableEth1DataMajorityVote = &cli.BoolFlag{
|
|
|
|
Name: "disable-eth1-data-majority-vote",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2021-04-07 15:18:19 +00:00
|
|
|
deprecatedDisableBlst = &cli.BoolFlag{
|
|
|
|
Name: "disable-blst",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2021-05-25 14:22:12 +00:00
|
|
|
deprecatedAttestingTimely = &cli.BoolFlag{
|
|
|
|
Name: "attest-timely",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2021-04-28 13:44:13 +00:00
|
|
|
deprecatedProposerAttsSelectionUsingMaxCover = &cli.BoolFlag{
|
|
|
|
Name: "proposer-atts-selection-using-max-cover",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2020-10-13 06:38:41 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var deprecatedFlags = []cli.Flag{
|
|
|
|
exampleDeprecatedFeatureFlag,
|
2021-02-01 11:18:24 +00:00
|
|
|
deprecatedEnableSyncBacktracking,
|
2020-12-03 15:43:26 +00:00
|
|
|
deprecatedDisableSyncBacktracking,
|
2021-02-16 15:27:37 +00:00
|
|
|
deprecatedDisablePruningDepositProofs,
|
|
|
|
deprecatedDisableEth1DataMajorityVote,
|
2021-04-07 15:18:19 +00:00
|
|
|
deprecatedDisableBlst,
|
2021-05-25 14:22:12 +00:00
|
|
|
deprecatedAttestingTimely,
|
2021-04-28 13:44:13 +00:00
|
|
|
deprecatedProposerAttsSelectionUsingMaxCover,
|
2020-10-13 06:38:41 +00:00
|
|
|
}
|