Make Peer Scorer Permanent Default (#12138)

* add changes

* gaz

* fix
This commit is contained in:
Nishant Das
2023-03-16 18:52:49 +08:00
committed by GitHub
parent 3802761088
commit 4d28d69fd9
14 changed files with 14 additions and 190 deletions

View File

@@ -43,7 +43,6 @@ type Flags struct {
// Feature related flags.
RemoteSlasherProtection bool // RemoteSlasherProtection utilizes a beacon node with --slasher mode for validator slashing protection.
WriteSSZStateTransitions bool // WriteSSZStateTransitions to tmp directory.
EnablePeerScorer bool // EnablePeerScorer enables experimental peer scoring in p2p.
DisableReorgLateBlocks bool // DisableReorgLateBlocks disables reorgs of late blocks.
WriteWalletPasswordOnWebOnboarding bool // WriteWalletPasswordOnWebOnboarding writes the password to disk after Prysm web signup.
EnableDoppelGanger bool // EnableDoppelGanger enables doppelganger protection on startup for the validator.
@@ -176,11 +175,7 @@ func ConfigureBeaconChain(ctx *cli.Context) error {
logDisabled(disableGRPCConnectionLogging)
cfg.DisableGRPCConnectionLogs = true
}
cfg.EnablePeerScorer = true
if ctx.Bool(disablePeerScorer.Name) {
logDisabled(disablePeerScorer)
cfg.EnablePeerScorer = false
}
cfg.DisableReorgLateBlocks = true
if ctx.Bool(enableReorgLateBlocks.Name) {
logEnabled(enableReorgLateBlocks)