-
Notifications
You must be signed in to change notification settings - Fork 769
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
Add gossipsub as a Lighthouse behaviour #5066
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Age, only one remark ;)
libp2p-mplex = { git = "https://github.com/sigp/rust-libp2p/", rev = "b96b90894faab0a1eed78e1c82c6452138a3538a" } | ||
|
||
[dependencies.libp2p] | ||
git = "https://github.com/sigp/rust-libp2p/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can depend on sigp/rust-libp2p
master
after sigp/rust-libp2p#566 gets merged
324f873
to
39fbd19
Compare
39fbd19
to
f83f9b3
Compare
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 4273004 |
* Move gossipsub as a lighthouse behaviour * Update dependencies, pin to corrected libp2p version * Merge latest unstable * Fix test * Remove unused dep * Fix cargo.lock * Re-order behaviour, pin upstream libp2p * Pin discv5 to latest version
This PR moves gossipsub into the
lighthouse_network
repository.This allows us to move a little bit quicker and add lighthouse-specific changes to our gossipsub behaviour without worrying about upstream users who may depend on the code.
This currently introduced tracing as a logging dependency. We might want to consider shifting to slog, but still filtering the logs into a separate file.
I've left this as tracing log for the time being.
This PR also introduce the following changes to the gossipsub protocol:
ConnectionHandler
message queue. The default is5000
messages, but users can change that value viaConfig::connection_handler_queue_len()