Skip to content

Commit

Permalink
Add Flags To Dev Mode (#12152)
Browse files Browse the repository at this point in the history
Co-authored-by: terencechain <terence@prysmaticlabs.com>
  • Loading branch information
nisdas and terencechain committed Mar 17, 2023
1 parent 67595d5 commit 2a1c626
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config/features/config.go
Expand Up @@ -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)
Expand Down
9 changes: 6 additions & 3 deletions config/features/flags.go
Expand Up @@ -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{
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 2a1c626

Please sign in to comment.