New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reverse broadcast-slashing flag to disable-broadcast-slashings #5952
Conversation
Test failed @0xKiwi |
Codecov Report
@@ Coverage Diff @@
## master #5952 +/- ##
==========================================
+ Coverage 59.47% 59.56% +0.09%
==========================================
Files 319 318 -1
Lines 26820 26777 -43
==========================================
- Hits 15950 15949 -1
+ Misses 8706 8662 -44
- Partials 2164 2166 +2 |
@@ -4,16 +4,19 @@ import ( | |||
"context" | |||
"testing" | |||
|
|||
"github.com/prysmaticlabs/prysm/shared/featureconfig" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shared/featureconfig/config.go
Outdated
@@ -197,9 +197,9 @@ func ConfigureBeaconChain(ctx *cli.Context) { | |||
log.Warn("Enabling state reference copy") | |||
cfg.EnableStateRefCopy = true | |||
} | |||
if ctx.Bool(broadcastSlashingFlag.Name) { | |||
if ctx.Bool(disableBroadcastSlashingFlag.Name) { | |||
log.Warn("Enabling broadcast slashing to p2p network") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This log message doesn't seem right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thank you
…m into toggle-broadcast-flag
PTAL @terencechain |
What type of PR is this?
Flag reversal
What does this PR do? Why is it needed?
This PR deprecates the
--broadcast-slashing
flag, and introduces a--disable-broadcast-slashings
that blocks slashings that are submitted into the beacon pool from being propagated. Reversing allows every node with a slasher to by default, propagate the slashings submitted.