mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
Enable local slashing protection by default (#6687)
* Enable local slashing protection by default * Merge refs/heads/master into enable-local-protection-by-default * Merge refs/heads/master into enable-local-protection-by-default * Merge refs/heads/master into enable-local-protection-by-default * Merge refs/heads/master into enable-local-protection-by-default * Merge refs/heads/master into enable-local-protection-by-default * Merge refs/heads/master into enable-local-protection-by-default
This commit is contained in:
parent
cf57db910c
commit
208659d7f5
@ -264,8 +264,9 @@ func ConfigureValidator(ctx *cli.Context) {
|
|||||||
cfg.AltonaTestnet = true
|
cfg.AltonaTestnet = true
|
||||||
}
|
}
|
||||||
if ctx.Bool(enableLocalProtectionFlag.Name) {
|
if ctx.Bool(enableLocalProtectionFlag.Name) {
|
||||||
log.Warn("Enabled validator slashing protection.")
|
|
||||||
cfg.LocalProtection = true
|
cfg.LocalProtection = true
|
||||||
|
} else {
|
||||||
|
log.Warn("Validator slashing protection not enabled!")
|
||||||
}
|
}
|
||||||
if ctx.Bool(enableAccountsV2.Name) {
|
if ctx.Bool(enableAccountsV2.Name) {
|
||||||
log.Warn("Enabling v2 of Prysm validator accounts")
|
log.Warn("Enabling v2 of Prysm validator accounts")
|
||||||
|
@ -61,11 +61,11 @@ var (
|
|||||||
Usage: "Cache filtered block tree by maintaining it rather than continually recalculating on the fly, " +
|
Usage: "Cache filtered block tree by maintaining it rather than continually recalculating on the fly, " +
|
||||||
"this is used for fork choice.",
|
"this is used for fork choice.",
|
||||||
}
|
}
|
||||||
|
|
||||||
enableLocalProtectionFlag = &cli.BoolFlag{
|
enableLocalProtectionFlag = &cli.BoolFlag{
|
||||||
Name: "enable-local-protection",
|
Name: "enable-local-protection",
|
||||||
Usage: "Enables functionality to prevent the validator client from signing and " +
|
Usage: "Enables functionality to prevent the validator client from signing and " +
|
||||||
"broadcasting any messages that could be considered slashable according to its own history.",
|
"broadcasting any messages that could be considered slashable according to its own history.",
|
||||||
|
Value: true,
|
||||||
}
|
}
|
||||||
enableExternalSlasherProtectionFlag = &cli.BoolFlag{
|
enableExternalSlasherProtectionFlag = &cli.BoolFlag{
|
||||||
Name: "enable-external-slasher-protection",
|
Name: "enable-external-slasher-protection",
|
||||||
|
Loading…
Reference in New Issue
Block a user