Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #510 from 0xProject/fix/relax-bandwidth-banning-co…
Browse files Browse the repository at this point in the history
…nstraints

Make bandwidth banning more lenient for false positives
  • Loading branch information
albrow authored Nov 7, 2019
2 parents b0092e7 + dd5591e commit 6732608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/banner/banner.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const (
violationsCacheSize = 1000
// violationsBeforeBan is the number of times a peer is allowed to violate the
// bandwidth limits before being banned.
violationsBeforeBan = 4
violationsBeforeBan = 10
// violationsTTL is the TTL for bandwidth violations. If a peer does not have
// any violations during this timespan, their violation count will be reset.
violationsTTL = 6 * time.Hour
violationsTTL = 1 * time.Hour
)

var ErrProtectedIP = errors.New("cannot ban protected IP address")
Expand Down

0 comments on commit 6732608

Please sign in to comment.