Skip to content

fix(gossipsub): always honor support_floodsub setting#3837

Merged
mergify[bot] merged 10 commits intomasterfrom
fix/gossipsub-always-support-flood
Apr 27, 2023
Merged

fix(gossipsub): always honor support_floodsub setting#3837
mergify[bot] merged 10 commits intomasterfrom
fix/gossipsub-always-support-flood

Conversation

@thomaseizinger
Copy link
Copy Markdown
Contributor

@thomaseizinger thomaseizinger commented Apr 26, 2023

Description

Previously, we only honored the support_floodsub setting when the user did not specify a custom protocol for gossipsub. This patch fixes this and allows users to advertise floodsub even when they use a custom protocol.

Notes & open questions

cc @AgeManning I believe this is an oversight. Let me know in case this was intentional. I don't see a reason why we should silently ignore this setting when using a custom protocol identifier.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

Copy link
Copy Markdown
Contributor

@AgeManning AgeManning left a comment

Choose a reason for hiding this comment

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

Yeah looks like an oversight. Nice catch.

@mergify mergify bot merged commit 9d1058d into master Apr 27, 2023
@mergify mergify bot deleted the fix/gossipsub-always-support-flood branch April 27, 2023 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants