Skip to content

Conversation

@hopinheimer
Copy link
Contributor

@hopinheimer hopinheimer commented Jan 4, 2025

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.

@hopinheimer hopinheimer marked this pull request as draft January 4, 2025 05:51
@hopinheimer hopinheimer changed the title feat(p2p): p2p network init feat: p2p network init Jan 6, 2025
@hopinheimer hopinheimer requested review from KolbyML and syjn99 January 6, 2025 04:31
@hopinheimer hopinheimer marked this pull request as ready for review January 6, 2025 04:31
@KolbyML
Copy link
Contributor

KolbyML commented Jan 6, 2025

Please run make lint to fix the clippy ci

Copy link
Contributor

@KolbyML KolbyML left a 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

Copy link
Contributor

@ch4r10t33r ch4r10t33r left a 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.

Copy link
Member

@syjn99 syjn99 left a 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?

Copy link
Contributor

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

@hopinheimer
Copy link
Contributor Author

Thank you for your effort! I have a question: What is the goal for this PR? When can we merge those works?

mostly to setup a rough working p2p crate for everyone to start working it.

Comment on lines 1 to 11
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,
}
Copy link
Contributor

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

Copy link
Contributor

@KolbyML KolbyML left a comment

Choose a reason for hiding this comment

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

:shipit: looks good

@KolbyML KolbyML added this pull request to the merge queue Jan 10, 2025
Merged via the queue into ReamLabs:master with commit 4ce34e4 Jan 10, 2025
4 of 5 checks passed
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