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,
|
|
|
|
}
|
2022-09-08 13:42:29 +00:00
|
|
|
deprecatedEnableDefensivePull = &cli.BoolFlag{
|
|
|
|
Name: "enable-back-pull",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-08-22 16:05:15 +00:00
|
|
|
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,
|
|
|
|
}
|
2022-09-15 18:47:51 +00:00
|
|
|
deprecatedDisableNativeState = &cli.StringFlag{
|
|
|
|
Name: "disable-native-state",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2023-03-01 00:07:23 +00:00
|
|
|
deprecatedEnableOnlyBlindedBeaconBlocks = &cli.BoolFlag{
|
|
|
|
Name: "enable-only-blinded-beacon-blocks",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2023-03-01 05:26:32 +00:00
|
|
|
deprecatedRopstenTestnet = &cli.StringFlag{
|
|
|
|
Name: "ropsten",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2023-03-01 19:39:17 +00:00
|
|
|
deprecatedInteropGenesisState = &cli.StringFlag{
|
|
|
|
Name: "interop-genesis-state",
|
|
|
|
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-09-08 13:42:29 +00:00
|
|
|
deprecatedEnableDefensivePull,
|
2022-09-15 18:47:51 +00:00
|
|
|
deprecatedDisableNativeState,
|
2023-03-01 05:26:32 +00:00
|
|
|
deprecatedRopstenTestnet,
|
2023-03-01 19:39:17 +00:00
|
|
|
deprecatedInteropGenesisState,
|
2022-08-20 04:16:14 +00:00
|
|
|
}
|
|
|
|
|
2022-08-30 15:47:36 +00:00
|
|
|
// deprecatedBeaconFlags contains flags that are still used by other components
|
|
|
|
// and therefore cannot be added to deprecatedFlags
|
2022-08-20 04:16:14 +00:00
|
|
|
var deprecatedBeaconFlags = []cli.Flag{
|
|
|
|
deprecatedBackupWebHookFlag,
|
2023-03-01 00:07:23 +00:00
|
|
|
deprecatedEnableOnlyBlindedBeaconBlocks,
|
2020-10-13 06:38:41 +00:00
|
|
|
}
|