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

Add preconnected nodes to pubsub #393

Merged
merged 2 commits into from
Dec 7, 2020
Merged

Add preconnected nodes to pubsub #393

merged 2 commits into from
Dec 7, 2020

Conversation

aschmahmann
Copy link
Contributor

PubSub only tries to add peers to the set of pubsub nodes when they connect. This meant that peers that were already connected to the host (e.g. tests, multiple nodes on the same machine, an application waiting a while to start up pubsub, etc.) would not get treated as pubsub nodes.

This resolves that by simply adding the list of already connected peers to pubsub.

Note: PubSub still does not utilize Identify events to figure out if a peer supports one of the valid pubsub protocols or not, that other implementations of PubSub need to run a similar script instead of just toggling on and off support for a protocol like FloodSub.

@aschmahmann
Copy link
Contributor Author

Note: CI on this branch seems to be failing sometimes - I think the TestTagTracerDeliveryTags test is flaky and that it's unrelated to this PR. lmk what you think @vyzo

@vyzo
Copy link
Collaborator

vyzo commented Dec 7, 2020

yeah, that test is flaky and it's getting on my nerves.

@vyzo vyzo merged commit aa4f9da into master Dec 7, 2020
@vyzo vyzo deleted the fix/preconnectednodes branch December 7, 2020 08:27
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