mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
31a78ab22a
* add config/features * Gazelle * Gazelle * Fix build * Go mod tidy * active cache Co-authored-by: rauljordan <raul@prysmaticlabs.com>
41 lines
984 B
Go
41 lines
984 B
Go
package features
|
|
|
|
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,
|
|
}
|
|
|
|
deprecatedEnableActiveBalanceCache = &cli.BoolFlag{
|
|
Name: "enable-active-balance-cache",
|
|
Usage: deprecatedUsage,
|
|
Hidden: true,
|
|
}
|
|
|
|
deprecatedCorrectlyPruneCanonicalAtts = &cli.BoolFlag{
|
|
Name: "correctly-prune-canonical-atts",
|
|
Usage: deprecatedUsage,
|
|
Hidden: true,
|
|
}
|
|
|
|
deprecatedCorrectlyInsertOrphanedAtts = &cli.BoolFlag{
|
|
Name: "correctly-insert-orphaned-atts",
|
|
Usage: deprecatedUsage,
|
|
Hidden: true,
|
|
}
|
|
)
|
|
|
|
var deprecatedFlags = []cli.Flag{
|
|
exampleDeprecatedFeatureFlag,
|
|
deprecatedEnableActiveBalanceCache,
|
|
deprecatedCorrectlyPruneCanonicalAtts,
|
|
deprecatedCorrectlyInsertOrphanedAtts,
|
|
}
|