switching enable to disable for duties (#15445)

This commit is contained in:
james-prysm
2025-07-10 13:57:36 -05:00
committed by GitHub
parent 02f8726e46
commit bc7e4f7751
4 changed files with 26 additions and 23 deletions

View File

@@ -49,7 +49,7 @@ type Flags struct {
EnableHistoricalSpaceRepresentation bool // EnableHistoricalSpaceRepresentation enables the saving of registry validators in separate buckets to save space
EnableBeaconRESTApi bool // EnableBeaconRESTApi enables experimental usage of the beacon REST API by the validator when querying a beacon node
EnableExperimentalAttestationPool bool // EnableExperimentalAttestationPool enables an experimental attestation pool design.
EnableDutiesV2 bool // EnableDutiesV2 sets validator client to use the get Duties V2 endpoint
DisableDutiesV2 bool // DisableDutiesV2 sets validator client to use the get Duties endpoint
EnableWeb bool // EnableWeb enables the webui on the validator client
SSZOnly bool // SSZOnly forces the validator client to use SSZ for communication with the beacon node when REST mode is enabled (useful for debugging)
// Logging related toggles.
@@ -332,9 +332,9 @@ func ConfigureValidator(ctx *cli.Context) error {
logEnabled(EnableBeaconRESTApi)
cfg.EnableBeaconRESTApi = true
}
if ctx.Bool(EnableDutiesV2.Name) {
logEnabled(EnableDutiesV2)
cfg.EnableDutiesV2 = true
if ctx.Bool(DisableDutiesV2.Name) {
logEnabled(DisableDutiesV2)
cfg.DisableDutiesV2 = true
}
if ctx.Bool(EnableWebFlag.Name) {
logEnabled(EnableWebFlag)

View File

@@ -185,10 +185,10 @@ var (
Usage: "A comma-separatted list of 0x-prefixed hexstrings. Declares blocks with the given blockroots to be invalid. It downscores peers that send these blocks.",
}
// EnableDutiesV2 sets the validator client to use the get duties v2 grpc endpoint
EnableDutiesV2 = &cli.BoolFlag{
Name: "enable-duties-v2",
Usage: "Forces use of get duties v2 endpoint.",
// DisableDutiesV2 sets the validator client to use the get duties grpc endpoint
DisableDutiesV2 = &cli.BoolFlag{
Name: "disable-duties-v2",
Usage: "Forces use of get duties endpoint instead of v2.",
}
// EnableWebFlag enables controlling the validator client via the Prysm web ui. This is a work in progress.
@@ -223,7 +223,7 @@ var ValidatorFlags = append(deprecatedFlags, []cli.Flag{
EnableMinimalSlashingProtection,
enableDoppelGangerProtection,
EnableBeaconRESTApi,
EnableDutiesV2,
DisableDutiesV2,
EnableWebFlag,
SSZOnly,
}...)