mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 07:58:22 -05:00
Add Flags To Dev Mode (#12152)
Co-authored-by: terencechain <terence@prysmaticlabs.com>
This commit is contained in:
@@ -202,8 +202,8 @@ func ConfigureBeaconChain(ctx *cli.Context) error {
|
||||
logEnabled(enableVerboseSigVerification)
|
||||
cfg.EnableVerboseSigVerification = true
|
||||
}
|
||||
if ctx.IsSet(EnableOptionalEngineMethods.Name) {
|
||||
logEnabled(EnableOptionalEngineMethods)
|
||||
if ctx.IsSet(enableOptionalEngineMethods.Name) {
|
||||
logEnabled(enableOptionalEngineMethods)
|
||||
cfg.EnableOptionalEngineMethods = true
|
||||
}
|
||||
Init(cfg)
|
||||
|
||||
@@ -110,14 +110,17 @@ var (
|
||||
Name: "enable-verbose-sig-verification",
|
||||
Usage: "Enables identifying invalid signatures if batch verification fails when processing block",
|
||||
}
|
||||
EnableOptionalEngineMethods = &cli.BoolFlag{
|
||||
enableOptionalEngineMethods = &cli.BoolFlag{
|
||||
Name: "enable-optional-engine-methods",
|
||||
Usage: "Enables the optional engine methods",
|
||||
}
|
||||
)
|
||||
|
||||
// devModeFlags holds list of flags that are set when development mode is on.
|
||||
var devModeFlags = []cli.Flag{}
|
||||
var devModeFlags = []cli.Flag{
|
||||
enableVerboseSigVerification,
|
||||
enableOptionalEngineMethods,
|
||||
}
|
||||
|
||||
// ValidatorFlags contains a list of all the feature flags that apply to the validator client.
|
||||
var ValidatorFlags = append(deprecatedFlags, []cli.Flag{
|
||||
@@ -155,7 +158,7 @@ var BeaconChainFlags = append(deprecatedBeaconFlags, append(deprecatedFlags, []c
|
||||
enableStartupOptimistic,
|
||||
enableFullSSZDataLogging,
|
||||
enableVerboseSigVerification,
|
||||
EnableOptionalEngineMethods,
|
||||
enableOptionalEngineMethods,
|
||||
}...)...)
|
||||
|
||||
// E2EBeaconChainFlags contains a list of the beacon chain feature flags to be tested in E2E.
|
||||
|
||||
Reference in New Issue
Block a user