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,
|
|
|
|
}
|
2021-09-10 21:47:25 +00:00
|
|
|
|
|
|
|
deprecatedEnableActiveBalanceCache = &cli.BoolFlag{
|
|
|
|
Name: "enable-active-balance-cache",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2021-09-13 17:05:09 +00:00
|
|
|
|
2021-09-13 20:10:45 +00:00
|
|
|
deprecatedCorrectlyPruneCanonicalAtts = &cli.BoolFlag{
|
|
|
|
Name: "correctly-prune-canonical-atts",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
|
|
|
|
2021-09-13 17:05:09 +00:00
|
|
|
deprecatedCorrectlyInsertOrphanedAtts = &cli.BoolFlag{
|
|
|
|
Name: "correctly-insert-orphaned-atts",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2021-09-16 07:48:06 +00:00
|
|
|
|
|
|
|
deprecatedNextSlotStateCache = &cli.BoolFlag{
|
|
|
|
Name: "enable-next-slot-state-cache",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-01-21 17:26:42 +00:00
|
|
|
|
|
|
|
deprecatedEnableBatchGossipVerification = &cli.BoolFlag{
|
|
|
|
Name: "enable-batch-gossip-verification",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-01-21 22:22:44 +00:00
|
|
|
|
|
|
|
deprecatedEnableGetBlockOptimizations = &cli.BoolFlag{
|
|
|
|
Name: "enable-get-block-optimizations",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-01-24 11:36:10 +00:00
|
|
|
|
|
|
|
deprecatedEnableBalanceTrieComputation = &cli.BoolFlag{
|
|
|
|
Name: "enable-balance-trie-computation",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-02-02 11:40:46 +00:00
|
|
|
|
|
|
|
deprecatedDisableNextSlotStateCache = &cli.BoolFlag{
|
|
|
|
Name: "disable-next-slot-state-cache",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-02-02 16:26:48 +00:00
|
|
|
deprecatedAttestationAggregationStrategy = &cli.BoolFlag{
|
|
|
|
Name: "attestation-aggregation-strategy",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
|
|
|
deprecatedForceOptMaxCoverAggregationStategy = &cli.BoolFlag{
|
|
|
|
Name: "attestation-aggregation-force-opt-maxcover",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-04-15 15:30:32 +00:00
|
|
|
deprecatedPyrmontTestnet = &cli.BoolFlag{
|
|
|
|
Name: "pyrmont",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-04-20 05:30:29 +00:00
|
|
|
deprecatedDisableGetBlockOptimizations = &cli.BoolFlag{
|
|
|
|
Name: "disable-get-block-optimizations",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-04-19 08:59:19 +00:00
|
|
|
deprecatedDisableProposerAttsSelectionUsingMaxCover = &cli.BoolFlag{
|
|
|
|
Name: "disable-proposer-atts-selection-using-max-cover",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-04-20 09:02:33 +00:00
|
|
|
deprecatedDisableOptimizedBalanceUpdate = &cli.BoolFlag{
|
|
|
|
Name: "disable-optimized-balance-update",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-04-21 02:59:52 +00:00
|
|
|
deprecatedDisableActiveBalanceCache = &cli.BoolFlag{
|
|
|
|
Name: "disable-active-balance-cache",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-04-25 09:16:41 +00:00
|
|
|
deprecatedDisableBalanceTrieComputation = &cli.BoolFlag{
|
|
|
|
Name: "disable-balance-trie-computation",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-04-26 12:28:35 +00:00
|
|
|
deprecatedDisableBatchGossipVerification = &cli.BoolFlag{
|
|
|
|
Name: "disable-batch-gossip-verification",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-06-15 09:05:19 +00:00
|
|
|
deprecatedDisableCorrectlyPruneCanonicalAtts = &cli.BoolFlag{
|
|
|
|
Name: "disable-correctly-prune-canonical-atts",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-05-04 13:59:41 +00:00
|
|
|
deprecatedDisableCorrectlyInsertOrphanedAtts = &cli.BoolFlag{
|
|
|
|
Name: "disable-correctly-insert-orphaned-atts",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2022-06-16 20:59:46 +00:00
|
|
|
deprecatedEnableNativeState = &cli.BoolFlag{
|
|
|
|
Name: "enable-native-state",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2020-10-13 06:38:41 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var deprecatedFlags = []cli.Flag{
|
|
|
|
exampleDeprecatedFeatureFlag,
|
2021-09-10 21:47:25 +00:00
|
|
|
deprecatedEnableActiveBalanceCache,
|
2021-09-13 20:10:45 +00:00
|
|
|
deprecatedCorrectlyPruneCanonicalAtts,
|
2021-09-13 17:05:09 +00:00
|
|
|
deprecatedCorrectlyInsertOrphanedAtts,
|
2021-09-16 07:48:06 +00:00
|
|
|
deprecatedNextSlotStateCache,
|
2022-01-21 17:26:42 +00:00
|
|
|
deprecatedEnableBatchGossipVerification,
|
2022-01-21 22:22:44 +00:00
|
|
|
deprecatedEnableGetBlockOptimizations,
|
2022-01-24 11:36:10 +00:00
|
|
|
deprecatedEnableBalanceTrieComputation,
|
2022-02-02 11:40:46 +00:00
|
|
|
deprecatedDisableNextSlotStateCache,
|
2022-02-02 16:26:48 +00:00
|
|
|
deprecatedAttestationAggregationStrategy,
|
|
|
|
deprecatedForceOptMaxCoverAggregationStategy,
|
2022-04-15 15:30:32 +00:00
|
|
|
deprecatedPyrmontTestnet,
|
2022-04-19 08:59:19 +00:00
|
|
|
deprecatedDisableProposerAttsSelectionUsingMaxCover,
|
2022-04-20 05:30:29 +00:00
|
|
|
deprecatedDisableGetBlockOptimizations,
|
2022-04-20 09:02:33 +00:00
|
|
|
deprecatedDisableOptimizedBalanceUpdate,
|
2022-04-21 02:59:52 +00:00
|
|
|
deprecatedDisableActiveBalanceCache,
|
2022-04-25 09:16:41 +00:00
|
|
|
deprecatedDisableBalanceTrieComputation,
|
2022-04-26 12:28:35 +00:00
|
|
|
deprecatedDisableBatchGossipVerification,
|
2022-05-04 13:59:41 +00:00
|
|
|
deprecatedDisableCorrectlyInsertOrphanedAtts,
|
2022-06-15 09:05:19 +00:00
|
|
|
deprecatedDisableCorrectlyPruneCanonicalAtts,
|
2022-06-16 20:59:46 +00:00
|
|
|
deprecatedEnableNativeState,
|
2020-10-13 06:38:41 +00:00
|
|
|
}
|