mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-08-09 22:53:26 +00:00
decay global counters after 2 min
we want rapid reaction to spam attacks
This commit is contained in:
parent
8191980fc8
commit
2ed9fd55ff
@ -23,7 +23,7 @@ var (
|
|||||||
DefaultPeerGaterIgnoreWeight = 1.0
|
DefaultPeerGaterIgnoreWeight = 1.0
|
||||||
DefaultPeerGaterRejectWeight = 4.0
|
DefaultPeerGaterRejectWeight = 4.0
|
||||||
DefaultPeerGaterThreshold = 0.33
|
DefaultPeerGaterThreshold = 0.33
|
||||||
DefaultPeerGaterGlobalDecay = ScoreParameterDecay(10 * time.Minute)
|
DefaultPeerGaterGlobalDecay = ScoreParameterDecay(2 * time.Minute)
|
||||||
DefaultPeerGaterSourceDecay = ScoreParameterDecay(time.Hour)
|
DefaultPeerGaterSourceDecay = ScoreParameterDecay(time.Hour)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user