decay global counters after 2 min

we want rapid reaction to spam attacks
This commit is contained in:
vyzo 2020-09-05 14:29:14 +03:00
parent 8191980fc8
commit 2ed9fd55ff

View File

@ -23,7 +23,7 @@ var (
DefaultPeerGaterIgnoreWeight = 1.0
DefaultPeerGaterRejectWeight = 4.0
DefaultPeerGaterThreshold = 0.33
DefaultPeerGaterGlobalDecay = ScoreParameterDecay(10 * time.Minute)
DefaultPeerGaterGlobalDecay = ScoreParameterDecay(2 * time.Minute)
DefaultPeerGaterSourceDecay = ScoreParameterDecay(time.Hour)
)