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

PubSub Gossip concept does not match Go implementation #66

Closed
aschmahmann opened this issue Oct 2, 2019 · 2 comments
Closed

PubSub Gossip concept does not match Go implementation #66

aschmahmann opened this issue Oct 2, 2019 · 2 comments

Comments

@aschmahmann
Copy link

aschmahmann commented Oct 2, 2019

The snazzy looking pubsub concept documentation describes Gossipsub's gossip as emitting to 6 peers every 1 second. https://github.com/libp2p/docs/pull/64/files#diff-c5421c96c419b40b9ccba140bf7376c4R211-R214

However, in the Go implementation that's not the case. Instead it emits to 0-6 peers every 1 second, depending on if the randomly selected peers are ones that are already in the mesh. https://github.com/libp2p/go-libp2p-pubsub/blob/master/gossipsub.go#L513-L520

I'm not sure which one of these is the bug, but I recall @vyzo mentioning that this was done intentionally in the Go gossipsub implementation to cause less messages to be propagated from smaller degree nodes.

@raulk @vyzo thoughts?

@aschmahmann
Copy link
Author

It was agreed that this was an implementation bug which is now fixed.

@vyzo
Copy link

vyzo commented Nov 1, 2019

It was not a bug; just a different approach that was trying to minimize the emitted gossip!

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

No branches or pull requests

2 participants