Skip to content

Commit

Permalink
Merge pull request #57 from WeAreAmaze/fixed_bad_response
Browse files Browse the repository at this point in the history
fixed bad response
  • Loading branch information
Jackmeng1985 committed Oct 13, 2023
2 parents db964db + 2234b4b commit 9256edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/p2p/peers/scorers/bad_responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const (
DefaultBadResponsesThreshold = 6
// DefaultBadResponsesDecayInterval defines how often to decay previous statistics.
// Every interval bad responses counter will be decremented by 1.
DefaultBadResponsesDecayInterval = 10 * time.Minute
DefaultBadResponsesDecayInterval = 2 * time.Minute
// DefaultBadResponsesPenaltyFactor defines the penalty factor applied to a peer based on their bad
// response count.
DefaultBadResponsesPenaltyFactor = 10
Expand Down

0 comments on commit 9256edf

Please sign in to comment.