Skip to content

refactor(core): remove l2 feature from cmd/ethrex achieving a single binary for both L1 and L2 #3381

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

Open
wants to merge 47 commits into
base: main
Choose a base branch
from

Conversation

ilitteri
Copy link
Contributor

Warning

Merge after #3371

Motivation

We want ethrex to be a single binary for both running L1 and L2. For this, we need to remove the l2 feature flag from cmd/ethrex, a work that includes removing the same feature flag from the following crates:

  1. ethrex-vm.
  2. ethrex-levm.
  3. ethrex-blockchain.

1 and 2 are removed in #3367, and 3 is removed in #3371.

Description

Removes l2 feature flag from cmd/ethrex

@ilitteri ilitteri self-assigned this Jun 27, 2025
@ilitteri ilitteri requested a review from a team as a code owner June 27, 2025 22:33
@ilitteri ilitteri added L2 Rollup client cli Command line interface L1 Ethereum client simplification Any refactor that makes code simpler and more straight forward labels Jun 27, 2025
Copy link

github-actions bot commented Jun 27, 2025

Lines of code report

Total lines added: 0
Total lines removed: 6
Total lines changed: 6

Detailed view
+----------------------------+-------+------+
| File                       | Lines | Diff |
+----------------------------+-------+------+
| ethrex/cmd/ethrex/cli.rs   | 451   | -3   |
+----------------------------+-------+------+
| ethrex/cmd/ethrex/lib.rs   | 8     | -1   |
+----------------------------+-------+------+
| ethrex/cmd/ethrex/utils.rs | 143   | -2   |
+----------------------------+-------+------+

Copy link
Collaborator

@MegaRedHand MegaRedHand left a comment

Choose a reason for hiding this comment

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

LGTM

@ilitteri ilitteri requested review from juanbono, jrchatruc and a team June 30, 2025 19:58
…ambdaclass/ethrex into remove_l2_feature_from_cmd_ethrex
@MegaRedHand MegaRedHand moved this from In Review to Queued in ethrex_l2 Jul 2, 2025
Base automatically changed from remove_l2_feature_flag_from_blockchain to main July 2, 2025 18:06
@MegaRedHand MegaRedHand enabled auto-merge July 2, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Command line interface L1 Ethereum client L2 Rollup client simplification Any refactor that makes code simpler and more straight forward
Projects
Status: Queued
Development

Successfully merging this pull request may close these issues.

3 participants