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

Debug instance for the gossipsub behaviour #1673

Merged
merged 7 commits into from
Jul 29, 2020

Conversation

rklaehn
Copy link
Contributor

@rklaehn rklaehn commented Jul 23, 2020

To assist looking into #1671

Not sure if the nicer debug output is worth the extra dependency. For me it is, but YMMV. I can remove this if you see this differently.

Edit: I added truncation of the message bytes to ensure that the debug output for a gossipsub msg is not too big.

protocols/gossipsub/src/config.rs Outdated Show resolved Hide resolved
protocols/gossipsub/src/config.rs Outdated Show resolved Hide resolved
Since it is used only once here
Otherwise they might become very large and useless for debugging
@romanb
Copy link
Contributor

romanb commented Jul 27, 2020

@rklaehn If you could update the gossipsub changelog and merge master, I can go ahead and merge this.

@romanb romanb merged commit 9662929 into libp2p:master Jul 29, 2020
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.

4 participants