mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
40a96bc2b6
* invert * Update shared/featureconfig/flags.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> Co-authored-by: Radosław Kapka <rkapka@wp.pl> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
68 lines
1.8 KiB
Go
68 lines
1.8 KiB
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,
|
|
}
|
|
deprecatedEnableSyncBacktracking = &cli.StringFlag{
|
|
Name: "enable-sync-backtracking",
|
|
Usage: deprecatedUsage,
|
|
Hidden: true,
|
|
}
|
|
deprecatedDisableSyncBacktracking = &cli.StringFlag{
|
|
Name: "disable-sync-backtracking",
|
|
Usage: deprecatedUsage,
|
|
Hidden: true,
|
|
}
|
|
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,
|
|
}
|
|
deprecatedDisableBlst = &cli.BoolFlag{
|
|
Name: "disable-blst",
|
|
Usage: deprecatedUsage,
|
|
Hidden: true,
|
|
}
|
|
deprecatedProposerAttsSelectionUsingMaxCover = &cli.BoolFlag{
|
|
Name: "proposer-atts-selection-using-max-cover",
|
|
Usage: deprecatedUsage,
|
|
Hidden: true,
|
|
}
|
|
deprecatedUpdateHeadTimely = &cli.BoolFlag{
|
|
Name: "update-head-timely",
|
|
Usage: deprecatedUsage,
|
|
Hidden: true,
|
|
}
|
|
deprecatedEnableOptimizedBalanceUpdate = &cli.BoolFlag{
|
|
Name: "enable-optimized-balance-update",
|
|
Usage: deprecatedUsage,
|
|
Hidden: true,
|
|
}
|
|
)
|
|
|
|
var deprecatedFlags = []cli.Flag{
|
|
exampleDeprecatedFeatureFlag,
|
|
deprecatedEnableSyncBacktracking,
|
|
deprecatedDisableSyncBacktracking,
|
|
deprecatedDisablePruningDepositProofs,
|
|
deprecatedDisableEth1DataMajorityVote,
|
|
deprecatedDisableBlst,
|
|
deprecatedProposerAttsSelectionUsingMaxCover,
|
|
deprecatedEnableOptimizedBalanceUpdate,
|
|
deprecatedUpdateHeadTimely,
|
|
}
|