Make Peer Scorer The Default (#11115)

* make it the default

* deprecate this

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Nishant Das
2022-07-28 01:01:13 +08:00
committed by GitHub
parent e5ab259ee1
commit 1601972625
4 changed files with 23 additions and 17 deletions

View File

@@ -208,9 +208,10 @@ func ConfigureBeaconChain(ctx *cli.Context) error {
logDisabled(disableGRPCConnectionLogging)
cfg.DisableGRPCConnectionLogs = true
}
if ctx.Bool(enablePeerScorer.Name) {
logEnabled(enablePeerScorer)
cfg.EnablePeerScorer = true
cfg.EnablePeerScorer = true
if ctx.Bool(disablePeerScorer.Name) {
logDisabled(disablePeerScorer)
cfg.EnablePeerScorer = false
}
if ctx.Bool(checkPtInfoCache.Name) {
log.Warn("Advance check point info cache is no longer supported and will soon be deleted")