-
Notifications
You must be signed in to change notification settings - Fork 101
feat(l1): embed bootnodes for public networks inside binary #3967
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
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.
Pull Request Overview
This PR embeds bootnode configuration files directly into the binary instead of reading them from the filesystem at runtime. This enables users to run the binary without needing external bootnode files for public networks (Holesky, Sepolia, Hoodi, and Mainnet).
Key Changes:
- Replaced lazy_static declarations with embedded string constants using
include_str!
- Added a new
get_bootnodes()
method to the Network enum for parsing embedded bootnode data - Simplified the bootnode loading logic in the initializers module
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
cmd/ethrex/networks.rs | Replaced lazy_static bootnode loading with embedded strings and added get_bootnodes() method |
cmd/ethrex/initializers.rs | Simplified bootnode loading to use the new get_bootnodes() method |
Lines of code reportTotal lines added: Detailed view
|
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
**Motivation** We want users to be able to run the binary without needing to have a file of known bootnodes for each public network. **Description** This PR embeds the bootnode files inside the binary. Closes #3966
…ass#3967) **Motivation** We want users to be able to run the binary without needing to have a file of known bootnodes for each public network. **Description** This PR embeds the bootnode files inside the binary. Closes lambdaclass#3966
Motivation
We want users to be able to run the binary without needing to have a file of known bootnodes for each public network.
Description
This PR embeds the bootnode files inside the binary.
Closes #3966