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:
Preston Van Loon 2020-07-22 17:47:19 -07:00 committed by GitHub
parent cf57db910c
commit 208659d7f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -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",