prysm-pulse/config/features/deprecated_flags.go
Leo Lara 7f53700306
Remove feature and flag Pyrmont testnet (#10522)
* Remove feature and flag Pyrmont testnet

* Remove unused parameter

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-04-15 15:30:32 +00:00

94 lines
2.4 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,
}
deprecatedEnableBatchGossipVerification = &cli.BoolFlag{
Name: "enable-batch-gossip-verification",
Usage: deprecatedUsage,
Hidden: true,
}
deprecatedEnableGetBlockOptimizations = &cli.BoolFlag{
Name: "enable-get-block-optimizations",
Usage: deprecatedUsage,
Hidden: true,
}
deprecatedEnableBalanceTrieComputation = &cli.BoolFlag{
Name: "enable-balance-trie-computation",
Usage: deprecatedUsage,
Hidden: true,
}
deprecatedDisableNextSlotStateCache = &cli.BoolFlag{
Name: "disable-next-slot-state-cache",
Usage: deprecatedUsage,
Hidden: true,
}
deprecatedAttestationAggregationStrategy = &cli.BoolFlag{
Name: "attestation-aggregation-strategy",
Usage: deprecatedUsage,
Hidden: true,
}
deprecatedForceOptMaxCoverAggregationStategy = &cli.BoolFlag{
Name: "attestation-aggregation-force-opt-maxcover",
Usage: deprecatedUsage,
Hidden: true,
}
deprecatedPyrmontTestnet = &cli.BoolFlag{
Name: "pyrmont",
Usage: deprecatedUsage,
Hidden: true,
}
)
var deprecatedFlags = []cli.Flag{
exampleDeprecatedFeatureFlag,
deprecatedEnableActiveBalanceCache,
deprecatedCorrectlyPruneCanonicalAtts,
deprecatedCorrectlyInsertOrphanedAtts,
deprecatedNextSlotStateCache,
deprecatedEnableBatchGossipVerification,
deprecatedEnableGetBlockOptimizations,
deprecatedEnableBalanceTrieComputation,
deprecatedDisableNextSlotStateCache,
deprecatedAttestationAggregationStrategy,
deprecatedForceOptMaxCoverAggregationStategy,
deprecatedPyrmontTestnet,
}