2021-09-15 01:18:39 +00:00
|
|
|
package features
|
2020-10-13 06:38:41 +00:00
|
|
|
|
|
|
|
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,
|
|
|
|
}
|
2022-08-22 16:05:15 +00:00
|
|
|
deprecatedBackupWebHookFlag = &cli.BoolFlag{
|
2022-08-20 04:16:14 +00:00
|
|
|
Name: "enable-db-backup-webhook",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
|
|
|
deprecatedBoltMmapFlag = &cli.StringFlag{
|
|
|
|
Name: "bolt-mmap-initial-size",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-08-22 16:05:15 +00:00
|
|
|
deprecatedDisableDiscV5Flag = &cli.BoolFlag{
|
2022-08-20 04:16:14 +00:00
|
|
|
Name: "disable-discv5",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-08-22 16:05:15 +00:00
|
|
|
deprecatedDisableAttHistoryCacheFlag = &cli.BoolFlag{
|
2022-08-20 04:16:14 +00:00
|
|
|
Name: "disable-attesting-history-db-cache",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-08-22 16:05:15 +00:00
|
|
|
deprecatedEnableVectorizedHtr = &cli.BoolFlag{
|
|
|
|
Name: "enable-vectorized-htr",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
|
|
|
deprecatedEnablePeerScorer = &cli.BoolFlag{
|
|
|
|
Name: "enable-peer-scorer",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
|
|
|
deprecatedEnableForkchoiceDoublyLinkedTree = &cli.BoolFlag{
|
|
|
|
Name: "enable-forkchoice-doubly-linked-tree",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
|
|
|
deprecatedDutyCountdown = &cli.BoolFlag{
|
|
|
|
Name: "enable-duty-count-down",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
|
|
|
deprecatedHeadSync = &cli.BoolFlag{
|
|
|
|
Name: "head-sync",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
|
|
|
deprecatedGossipBatchAggregation = &cli.BoolFlag{
|
|
|
|
Name: "enable-gossip-batch-aggregation",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
|
|
|
deprecatedEnableLargerGossipHistory = &cli.BoolFlag{
|
|
|
|
Name: "enable-larger-gossip-history",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-08-22 15:20:21 +00:00
|
|
|
deprecatedFallbackProvider = &cli.StringFlag{
|
|
|
|
Name: "fallback-web3provider",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2020-10-13 06:38:41 +00:00
|
|
|
)
|
|
|
|
|
2022-08-20 04:16:14 +00:00
|
|
|
// Deprecated flags for both the beacon node and validator client.
|
2020-10-13 06:38:41 +00:00
|
|
|
var deprecatedFlags = []cli.Flag{
|
|
|
|
exampleDeprecatedFeatureFlag,
|
2022-08-20 04:16:14 +00:00
|
|
|
deprecatedBoltMmapFlag,
|
|
|
|
deprecatedDisableDiscV5Flag,
|
|
|
|
deprecatedDisableAttHistoryCacheFlag,
|
2022-08-22 16:05:15 +00:00
|
|
|
deprecatedEnableVectorizedHtr,
|
|
|
|
deprecatedEnablePeerScorer,
|
|
|
|
deprecatedEnableForkchoiceDoublyLinkedTree,
|
|
|
|
deprecatedDutyCountdown,
|
|
|
|
deprecatedHeadSync,
|
|
|
|
deprecatedGossipBatchAggregation,
|
|
|
|
deprecatedEnableLargerGossipHistory,
|
2022-08-22 15:20:21 +00:00
|
|
|
deprecatedFallbackProvider,
|
2022-08-20 04:16:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var deprecatedBeaconFlags = []cli.Flag{
|
|
|
|
deprecatedBackupWebHookFlag,
|
2020-10-13 06:38:41 +00:00
|
|
|
}
|