configure behaviour penalty for gsv1.1
This commit is contained in:
parent
6933df918a
commit
b032d3524b
@ -62,6 +62,10 @@ func GossipSub(mctx helpers.MetricsCtx, lc fx.Lifecycle, host host.Host, nn dtyp
|
|||||||
// TODO we want to whitelist IPv6 /64s that belong to datacenters etc
|
// TODO we want to whitelist IPv6 /64s that belong to datacenters etc
|
||||||
// IPColocationFactorWhitelist: map[string]struct{}{},
|
// IPColocationFactorWhitelist: map[string]struct{}{},
|
||||||
|
|
||||||
|
// P7: behavioural penalties, decay after 1hr
|
||||||
|
BehaviourPenaltyWeight: -10,
|
||||||
|
BehaviourPenaltyDecay: pubsub.ScoreParameterDecay(time.Hour),
|
||||||
|
|
||||||
DecayInterval: pubsub.DefaultDecayInterval,
|
DecayInterval: pubsub.DefaultDecayInterval,
|
||||||
DecayToZero: pubsub.DefaultDecayToZero,
|
DecayToZero: pubsub.DefaultDecayToZero,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user