Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Check protocols of relays found from kad provider #1

Open
dariusc93 opened this issue Jan 4, 2023 · 0 comments
Open

Check protocols of relays found from kad provider #1

dariusc93 opened this issue Jan 4, 2023 · 0 comments

Comments

@dariusc93
Copy link
Owner

In the client example, we are using identify to check the peers protocols to determine if they support relay v2 HOP before adding it to the behaviour as a candidate, however we are not able to check when using kad providers to locate relays under /libp2p/relay, which creates a problem if a node only supports relay v2. What could be done here (which still serve as an example for implementation this behaviour) is that once we have the candidates we could send an event to the swarm to get the peer so we can trigger an identify event for them to check and determine if they support relay v2 and to filter out any that dont before selecting attempting any reservation.

Note:

  1. Until swarm/: NetworkBehaviour/ConnectionHandler cross-communication libp2p/rust-libp2p#2680 is resolved, we will not be able to check the protocol directly in the behaviour.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant