-
Notifications
You must be signed in to change notification settings - Fork 784
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
Modularize or Simplify the eth2 crate #6452
Comments
I remember asking myself this when doing some PoC a long time ago that depended on |
The dependency on libp2p is only for these types use lighthouse_network::{types::SyncState, PeerInfo};
use lighthouse_network::{ConnectionDirection, Enr, Multiaddr, PeerConnectionStatus};
use lighthouse_network::PeerId; |
hi @AgeManning do you think I can swoop in on this? |
From an offline chat with @AgeManning we suggested to:
|
If nobody else is working on this, can I take a crack at this? @AgeManning @dapplion |
Hey @SkandaBhat - Sorry we have been away at a conference. @hopinheimer are you still looking into this? Or should @SkandaBhat have a crack? |
Hey @AgeManning sorry just reached back from the conference. hi @SkandaBhat please feel free to pick this up I haven't started work on it. |
Sure thanks! @AgeManning please feel free to assign this to me! I am available this week and can create smaller PRs towards this issue. |
@dapplion for the 3rd point, should a new crate be created or should I put it in an existing one? |
You can add a new crate |
Hey @SkandaBhat and @Gua00va, thanks for picking up this issue! We are currently modularizing some parts of the Lighthouse code base for use in Anchor, and as the |
Hey @dknopik I should have a draft by Tuesday next week, does that work? |
@SkandaBhat Sounds great, thanks! |
Hey @SkandaBhat, I already got started a bit today, see PR #6680. Feel free to improve on it if you have some ideas! |
Unfortunately got held up with something else last week @dknopik, I'll check your PR today and see if I have anything I can improve! |
Description
The
common/eth2
crate appears to import the whole world. Other crates that depend on eth2 are compiling and building libp2p and a whole host of other things.It would be great if we could significantly reduce the dependency chain here. Either by splitting up some of the structs or removing unnecessary imports.
The text was updated successfully, but these errors were encountered: