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

[Gossipsub] Handle unsupported peers #2241

Merged
merged 3 commits into from
Sep 27, 2021
Merged

Conversation

AgeManning
Copy link
Contributor

Previously, peers that did not support gossipsub were removed from the connection-id mappings.

This can cause the connection_id mappings to go out of sync with those managed by the swarm. This PR corrects this and adds an extra event that can inform the user that a peer that does not support the protocol has connected. The user can then optionally handle peers that don't support the protocol.

Copy link
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

Thanks!

I think the change in behaviour here is worth pointing out in the changelog.
Do you mind adding an entry?

@AgeManning
Copy link
Contributor Author

Yep, done :)

Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

All in favor of the additional event. Thanks @AgeManning.

@mxinden mxinden merged commit d93a5ab into libp2p:master Sep 27, 2021
@AgeManning AgeManning deleted the gossipsub-unsupported branch February 15, 2022 05:24
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.

3 participants