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

Configure libp2p gossipsub WithDirectPeers #292

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

snormore
Copy link
Contributor

Attempt to mitigate #291 with https://github.com/libp2p/go-libp2p-pubsub/blob/master/gossipsub.go#L353-L379

WithDirectPeers is a gossipsub router option that specifies peers with direct
peering agreements. These peers are connected outside of the mesh, with all (valid)
message unconditionally forwarded to them. The router will maintain open connections
to these peers. Note that the peering agreement should be reciprocal with direct peers
symmetrically configured at both ends.

@snormore snormore requested a review from neekolas August 30, 2023 22:51
Copy link
Collaborator

@neekolas neekolas left a comment

Choose a reason for hiding this comment

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

Why don't we try this in dev first and make sure it doesn't blow anything up

@snormore snormore force-pushed the libp2p-gossipsub-directpeers branch from 74c1e93 to d6558bd Compare August 30, 2023 22:59
@snormore snormore force-pushed the libp2p-gossipsub-directpeers branch 2 times, most recently from ef7a196 to 870884e Compare August 30, 2023 23:18
@snormore snormore merged commit a84bd00 into main Aug 30, 2023
3 checks passed
@snormore snormore deleted the libp2p-gossipsub-directpeers branch August 30, 2023 23: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