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: pass addr sorting to connection manager to always dial in a predeterministic way #351

Closed
wants to merge 1 commit into from

Conversation

sfroment
Copy link
Member

@sfroment sfroment commented Jan 13, 2025

This PR aim to make the dial consistent even when it's not coming from the identify.
How ? By passing the addr sorting on the connection manager side, which is invoked by calculateMultiaddrs in the libp2p code, which it self is called in dial.

Copy link
Contributor

@d-roak d-roak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of this, can we look into the issue with the native auto dialer?

libp2p/js-libp2p-pubsub-peer-discovery#149
ChainSafe/js-libp2p-gossipsub#510

@sfroment
Copy link
Member Author

Yup !

@sfroment
Copy link
Member Author

Ported in #363

@sfroment sfroment closed this Jan 15, 2025
@d-roak d-roak deleted the fix/move-addr-sorting branch January 24, 2025 02:31
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