Compare commits

...

3 Commits

Author SHA1 Message Date
Potuz
7725a5a3c2 add grandine 2025-04-01 11:41:14 -04:00
Potuz
52330bb279 add changelog 2025-04-01 11:40:25 -04:00
Potuz
cf11264745 Prefer Prysm peers 2025-04-01 11:19:25 -04:00
2 changed files with 19 additions and 1 deletions

View File

@@ -9,6 +9,15 @@ import (
var _ Scorer = (*GossipScorer)(nil)
var badPeerAgents = map[peer.ID]struct{}{
"LightHouse": {},
"Teku": {}, // TODO: should we keep this? I kinda like these guys, they implemented ePBS
"Lodestar": {},
"Caplin": {},
"Nimbus": {},
"Grandinet": {},
}
const (
// The boundary till which a peer's gossip score is acceptable.
gossipThreshold = -100.0
@@ -65,7 +74,13 @@ func (s *GossipScorer) isBadPeerNoLock(pid peer.ID) error {
return nil
}
if peerData.GossipScore < gossipThreshold {
_, ok = badPeerAgents[pid]
badPeerBoost := 0.0
if ok {
badPeerBoost = 100.0
}
if peerData.GossipScore < gossipThreshold+badPeerBoost {
return errors.Errorf("gossip score below threshold: got %f - threshold %f", peerData.GossipScore, gossipThreshold)
}

View File

@@ -0,0 +1,3 @@
### Added
- Favor Prysm and downscore faster other CLs identified by the agent string.