Skip to content

feat(l1): add mainnet as preset network#2459

Merged
fmoletta merged 1 commit into
mainfrom
add-mainnet
Apr 16, 2025
Merged

feat(l1): add mainnet as preset network#2459
fmoletta merged 1 commit into
mainfrom
add-mainnet

Conversation

@fmoletta

@fmoletta fmoletta commented Apr 14, 2025

Copy link
Copy Markdown
Contributor

Motivation
Adds mainnet bootnodes & genesis file so we can connect to mainnet by passing --network mainnet

Description

  • add mainnet bootnodes & genesis file
  • recognize mainnet as preset network
  • update docs

Contributes to #72

Notes
Mainnet genesis file is quite large, it is copied from here

@github-actions

Copy link
Copy Markdown

Lines of code report

Total lines added: 13
Total lines removed: 0
Total lines changed: 13

Detailed view
+-----------------------------------+-------+------+
| File                              | Lines | Diff |
+-----------------------------------+-------+------+
| ethrex/cmd/ethrex/initializers.rs | 345   | +7   |
+-----------------------------------+-------+------+
| ethrex/cmd/ethrex/networks.rs     | 28    | +6   |
+-----------------------------------+-------+------+

@fmoletta fmoletta marked this pull request as ready for review April 14, 2025 19:48
@fmoletta fmoletta requested a review from a team as a code owner April 14, 2025 19:48
@fmoletta fmoletta added this pull request to the merge queue Apr 16, 2025
Merged via the queue into main with commit 5aa86f0 Apr 16, 2025
@fmoletta fmoletta deleted the add-mainnet branch April 16, 2025 16:00
pedrobergamini pushed a commit to pedrobergamini/ethrex that referenced this pull request Aug 24, 2025
**Motivation**
Adds mainnet bootnodes & genesis file so we can connect to mainnet by
passing `--network mainnet`
<!-- Why does this pull request exist? What are its goals? -->

**Description**
* add mainnet bootnodes & genesis file
* recognize mainnet as preset network
* update docs
<!-- A clear and concise general description of the changes this PR
introduces -->

<!-- Link to issues: Resolves lambdaclass#111, Resolves lambdaclass#222 -->

Contributes to lambdaclass#72 

**Notes**
Mainnet genesis file is quite large, it is copied from
[here](https://github.com/eth-clients/mainnet/blob/main/metadata/genesis.json)
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.

3 participants