vacp2p / nim-libp2p

libp2p implementation in Nim
https://vacp2p.github.io/nim-libp2p/docs/
MIT License
240 stars 52 forks source link

When a peer's score drops below this threshold, the peer is graylisted and its RPCs are ignored #1141

Open diegomrsantos opened 2 days ago

diegomrsantos commented 2 days ago

Implement this part of the GossipSub spec: https://github.com/libp2p/specs/blob/master/pubsub/gossipsub/gossipsub-v1.1.md#score-thresholds

GraylistThreshold: when a peer's score drops below this threshold, the peer is graylisted and its RPCs are ignored. This threshold must be negative, and less than the gossip/publish threshold.