libp2p / go-libp2p-pubsub

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

Create GossipsubRouter with custom protocols #409

Closed richard-ramos closed 3 years ago

richard-ramos commented 3 years ago

Allows setting up a custom protocol list in GossipSub similar to FloodSub. Also changes the way a peer's protocol support is verified by introducing peerHasAny function which returns true if a peer supports any of the protocols passed to the function.

Related discussion here: https://github.com/libp2p/go-libp2p-pubsub/issues/408