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.
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