Skip to content

Commit

Permalink
disable behavior penalty
Browse files Browse the repository at this point in the history
  • Loading branch information
moshe-blox committed Jul 16, 2024
1 parent 4c76558 commit 4dacce8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions network/topics/params/peer_score.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func PeerScoreParams(oneEpoch, msgIDCacheTTL time.Duration, ipWhilelist ...*net.
targetVal, _ := decayConvergence(behaviourPenaltyDecay, maxAllowedRatePerDecayInterval)
targetVal = targetVal - behaviourPenaltyThreshold
behaviourPenaltyWeight := gossipThreshold / (targetVal * targetVal)

Check failure on line 59 in network/topics/params/peer_score.go

View workflow job for this annotation

GitHub Actions / lint

ineffectual assignment to behaviourPenaltyWeight (ineffassign)
behaviourPenaltyWeight = 0 // TODO: revert

return &pubsub.PeerScoreParams{
Topics: make(map[string]*pubsub.TopicScoreParams),
Expand Down

0 comments on commit 4dacce8

Please sign in to comment.