Attest timely by default (#15410)

* Attest timely by default

* Fix deprecated flag naming
This commit is contained in:
terence
2025-07-04 11:28:48 -07:00
committed by GitHub
parent a701f07f3a
commit 2d2507b907
4 changed files with 21 additions and 7 deletions

View File

@@ -318,9 +318,10 @@ func ConfigureValidator(ctx *cli.Context) error {
logEnabled(writeWalletPasswordOnWebOnboarding)
cfg.WriteWalletPasswordOnWebOnboarding = true
}
if ctx.Bool(attestTimely.Name) {
logEnabled(attestTimely)
cfg.AttestTimely = true
cfg.AttestTimely = true
if ctx.Bool(disableAttestTimely.Name) {
logEnabled(disableAttestTimely)
cfg.AttestTimely = false
}
if ctx.Bool(enableSlashingProtectionPruning.Name) {
logEnabled(enableSlashingProtectionPruning)

View File

@@ -98,6 +98,11 @@ var (
Usage: deprecatedUsage,
Hidden: true,
}
deprecatedAttestTimely = &cli.BoolFlag{
Name: "attest-timely",
Usage: deprecatedUsage,
Hidden: true,
}
)
// Deprecated flags for both the beacon node and validator client.
@@ -118,6 +123,7 @@ var deprecatedFlags = []cli.Flag{
deprecatedEnableCommitteeAwarePacking,
deprecatedInteropGenesisTimeFlag,
deprecatedEnableQuic,
deprecatedAttestTimely,
}
var upcomingDeprecation = []cli.Flag{

View File

@@ -91,9 +91,9 @@ var (
Name: "disable-broadcast-slashings",
Usage: "Disables broadcasting slashings submitted to the beacon node.",
}
attestTimely = &cli.BoolFlag{
Name: "attest-timely",
Usage: "Fixes validator can attest timely after current block processes. See #8185 for more details.",
disableAttestTimely = &cli.BoolFlag{
Name: "disable-attest-timely",
Usage: "Disable validator attesting timely after current block processes. See #8185 for more details.",
}
enableSlashingProtectionPruning = &cli.BoolFlag{
Name: "enable-slashing-protection-history-pruning",
@@ -222,7 +222,7 @@ var ValidatorFlags = append(deprecatedFlags, []cli.Flag{
HoodiTestnet,
Mainnet,
dynamicKeyReloadDebounceInterval,
attestTimely,
disableAttestTimely,
enableSlashingProtectionPruning,
EnableMinimalSlashingProtection,
enableDoppelGangerProtection,