-
Notifications
You must be signed in to change notification settings - Fork 65
feat: p2p network init #30
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
Conversation
|
Please run |
KolbyML
left a comment
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.
I left an initial look
ch4r10t33r
left a comment
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.
Few minor comments and questions.
syjn99
left a comment
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.
Thank you for your effort! I have a question:
What is the goal for this PR? When can we merge those works?
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.
Could this go in the ream-discv5 crate
mostly to setup a rough working p2p crate for everyone to start working it. |
| use discv5::Enr; | ||
|
|
||
| pub struct NetworkConfig { | ||
| pub discv5_config: discv5::Config, | ||
|
|
||
| pub boot_nodes_enr: Vec<Enr>, | ||
|
|
||
| pub disable_discovery: bool, | ||
|
|
||
| pub total_peers: usize, | ||
| } |
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.
can you remove the network-types crate and move NetworkConfig to the discv5 crate after that I believe the PR looks good
KolbyML
left a comment
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.
looks good
I have started with basic stub for p2p network using libp2p. To my assumption most of the p2p layer is going to remain as is and subsequent gossipsub changes for the Beam Chain can be directly added to the upstream. I plan on creating a dummy libp2p network sparsely based on the current networking spec in the beacon chain.