github.com/prysmaticlabs/prysm@v1.4.4/shared/featureconfig/deprecated_flags.go (about)

     1  package featureconfig
     2  
     3  import "github.com/urfave/cli/v2"
     4  
     5  // Deprecated flags list.
     6  const deprecatedUsage = "DEPRECATED. DO NOT USE."
     7  
     8  var (
     9  	// To deprecate a feature flag, first copy the example below, then insert deprecated flag in `deprecatedFlags`.
    10  	exampleDeprecatedFeatureFlag = &cli.StringFlag{
    11  		Name:   "name",
    12  		Usage:  deprecatedUsage,
    13  		Hidden: true,
    14  	}
    15  	deprecatedEnableSyncBacktracking = &cli.StringFlag{
    16  		Name:   "enable-sync-backtracking",
    17  		Usage:  deprecatedUsage,
    18  		Hidden: true,
    19  	}
    20  	deprecatedDisableSyncBacktracking = &cli.StringFlag{
    21  		Name:   "disable-sync-backtracking",
    22  		Usage:  deprecatedUsage,
    23  		Hidden: true,
    24  	}
    25  	deprecatedDisablePruningDepositProofs = &cli.BoolFlag{
    26  		Name:   "disable-pruning-deposit-proofs",
    27  		Usage:  deprecatedUsage,
    28  		Hidden: true,
    29  	}
    30  	deprecatedDisableEth1DataMajorityVote = &cli.BoolFlag{
    31  		Name:   "disable-eth1-data-majority-vote",
    32  		Usage:  deprecatedUsage,
    33  		Hidden: true,
    34  	}
    35  	deprecatedDisableBlst = &cli.BoolFlag{
    36  		Name:   "disable-blst",
    37  		Usage:  deprecatedUsage,
    38  		Hidden: true,
    39  	}
    40  	deprecatedProposerAttsSelectionUsingMaxCover = &cli.BoolFlag{
    41  		Name:   "proposer-atts-selection-using-max-cover",
    42  		Usage:  deprecatedUsage,
    43  		Hidden: true,
    44  	}
    45  	deprecatedUpdateHeadTimely = &cli.BoolFlag{
    46  		Name:   "update-head-timely",
    47  		Usage:  deprecatedUsage,
    48  		Hidden: true,
    49  	}
    50  	deprecatedEnableOptimizedBalanceUpdate = &cli.BoolFlag{
    51  		Name:   "enable-optimized-balance-update",
    52  		Usage:  deprecatedUsage,
    53  		Hidden: true,
    54  	}
    55  )
    56  
    57  var deprecatedFlags = []cli.Flag{
    58  	exampleDeprecatedFeatureFlag,
    59  	deprecatedEnableSyncBacktracking,
    60  	deprecatedDisableSyncBacktracking,
    61  	deprecatedDisablePruningDepositProofs,
    62  	deprecatedDisableEth1DataMajorityVote,
    63  	deprecatedDisableBlst,
    64  	deprecatedProposerAttsSelectionUsingMaxCover,
    65  	deprecatedUpdateHeadTimely,
    66  	deprecatedEnableOptimizedBalanceUpdate,
    67  }