mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 09:14:28 +00:00
514d4ef8f5
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
48 lines
1.1 KiB
Go
48 lines
1.1 KiB
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,
|
|
}
|
|
|
|
deprecatedNextSlotStateCache = &cli.BoolFlag{
|
|
Name: "enable-next-slot-state-cache",
|
|
Usage: deprecatedUsage,
|
|
Hidden: true,
|
|
}
|
|
)
|
|
|
|
var deprecatedFlags = []cli.Flag{
|
|
exampleDeprecatedFeatureFlag,
|
|
deprecatedEnableActiveBalanceCache,
|
|
deprecatedCorrectlyPruneCanonicalAtts,
|
|
deprecatedCorrectlyInsertOrphanedAtts,
|
|
deprecatedNextSlotStateCache,
|
|
}
|