mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
This PR introduces flag `--ignore-unviable-attestations` (replaces and deprecates `--disable-last-epoch-targets`) to drop attestations whose target state is not viable; default remains to process them unless explicitly enabled.
31 lines
762 B
Go
31 lines
762 B
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,
|
|
}
|
|
)
|
|
|
|
// Deprecated flags for both the beacon node and validator client.
|
|
var deprecatedFlags = []cli.Flag{}
|
|
|
|
var upcomingDeprecation = []cli.Flag{
|
|
enableHistoricalSpaceRepresentation,
|
|
}
|
|
|
|
// deprecatedBeaconFlags contains flags that are still used by other components
|
|
// and therefore cannot be added to deprecatedFlags
|
|
var deprecatedBeaconFlags = []cli.Flag{
|
|
deprecatedDisableLastEpochTargets,
|
|
}
|