From dd5591ec26f330815d3c41fc73ce43ae0d93fc3d Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Thu, 7 Nov 2019 13:35:14 -0800 Subject: [PATCH] Make bandwidth banning more lenient for false positives --- p2p/banner/banner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/banner/banner.go b/p2p/banner/banner.go index 71e1f252a..6ead48e58 100644 --- a/p2p/banner/banner.go +++ b/p2p/banner/banner.go @@ -25,10 +25,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")