libp2p / go-libp2p-pubsub

The PubSub implementation for go-libp2p
https://github.com/libp2p/specs/tree/master/pubsub
Other
327 stars 186 forks source link

add behaviour penalty threshold #377

Closed vyzo closed 4 years ago

vyzo commented 4 years ago

Adds a (optional) threshold for behaviour penalties, above which it activates. This is similar to the IPColocation threshold. Behaviour is unchanged if the threshold is unset (0).

Rationale: it has been observed that some overloaded lotus nodes fail to to follow up to IWANT requests; this threshold allows us to reduce the impact and only penalize the peer if the misbehaviour is persistent.