How can I limit the discovery only to peers that are running certain nodes?
- undefined PL Launchpad
Let’s say I am building a new application using libp2p, for example a network of level-2 cache nodes for Saturn CDN. When discovering active peers in the network, how can I limit the discovery only to peers that are running Saturn nodes? In other words, I’d like to have a “virtual” sub-DHT that contains only Saturn nodes.
You'll run identify protocol from our exchange information between you and the remote nodes and then you can either do that ahead of time or just try to dial a given node on the protocol that you want, and it will return an error. You can reuse the DHT implementation to be Saturn implementation and rename.