Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove internal relay discovery #7064

Merged
merged 1 commit into from
Mar 31, 2020
Merged

Conversation

Stebalien
Copy link
Member

This logic collects a list of known relays by testing every new connection.

It exists so we can dial /p2p-circuit/p2p/QmFoobar addresses (circuit addresses that don't specify the relay). However, this kind of address is useless outside of basic demos as a random relay is practically guaranteed to not be connected to the target peer. Picking a random relay to connect to some peer is almost never the desired behavior.

@willscott
Copy link
Contributor

expecting success: 
  ipfsi 0 swarm connect /p2p-circuit/p2p/$PEERID_2 > peers_out

Error: connect QmbYxz2oBPzdY4pnBs26WuC4BEa6nnwns3fWaJwWM9mrQK failure: failed to dial : all dials failed
  * [/p2p-circuit] Failed to dial through 0 known relay hosts

looks like there's a sharness test to update with this

@Stebalien
Copy link
Member Author

Yep.

This logic collects a list of known relays by testing every new connection.

It exists so we can dial /p2p-circuit/p2p/QmFoobar addresses (circuit addresses
that don't specify the relay). However, this kind of address is useless outside
of basic demos as a random relay is practically guaranteed to not be connected
to the target peer. Picking a random relay to connect to some peer is almost
_never_ the desired behavior.
@Stebalien Stebalien merged commit bf8db87 into master Mar 31, 2020
@Stebalien Stebalien deleted the feat/no-relay-discovery branch March 31, 2020 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants