Add Flags To Dev Mode (#12152)

Co-authored-by: terencechain <terence@prysmaticlabs.com>
This commit is contained in:
Nishant Das
2023-03-18 07:01:23 +08:00
committed by GitHub
parent 67595d576c
commit 2a1c626707
2 changed files with 8 additions and 5 deletions

View File

@@ -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)

View File

@@ -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.