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
}
if ctx.Bool(enableLocalProtectionFlag.Name) {
log.Warn("Enabled validator slashing protection.")
cfg.LocalProtection = true
} else {
log.Warn("Validator slashing protection not enabled!")
}
if ctx.Bool(enableAccountsV2.Name) {
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, " +
"this is used for fork choice.",
}
enableLocalProtectionFlag = &cli.BoolFlag{
Name: "enable-local-protection",
Usage: "Enables functionality to prevent the validator client from signing and " +
"broadcasting any messages that could be considered slashable according to its own history.",
Value: true,
}
enableExternalSlasherProtectionFlag = &cli.BoolFlag{
Name: "enable-external-slasher-protection",