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

feat(sn_networking): no gossip for clients via Toggle #990

Merged
merged 4 commits into from Nov 21, 2023

Conversation

joshuef
Copy link
Contributor

@joshuef joshuef commented Nov 21, 2023

Description

Summary generated by Reviewpad on 21 Nov 23 09:26 UTC

This pull request adds a feature to the sn_networking module. Specifically, it modifies the behavior of the Gossipsub protocol for clients. Gossiping is now disabled for clients via a Toggle. Additionally, the patch refactors the code related to the Gossipsub behavior and adds conditionals to handle different scenarios. The patch also includes various code cleanups and optimizations.

@reviewpad reviewpad bot added the Small Pull request is small label Nov 21, 2023
@reviewpad reviewpad bot added Medium Medium sized PR and removed Small Pull request is small labels Nov 21, 2023
@joshuef joshuef marked this pull request as ready for review November 21, 2023 10:40
Comment on lines 82 to 83
let (network, mut network_event_receiver, swarm_driver) =
network_builder.build_client(joins_gossip)?;
Copy link
Member

Choose a reason for hiding this comment

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

Just a small nit, but can we add enable_gossipsub into NetworkBuilder? And let it be false by default and enabled just for nodes?

@joshuef joshuef added this pull request to the merge queue Nov 21, 2023
Merged via the queue into maidsafe:main with commit 6ebee0e Nov 21, 2023
28 checks passed
@joshuef joshuef deleted the NoClientGoss branch November 21, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Medium Medium sized PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants