Skip to content

feat(l1): running localnet with client comparisions #3221

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

Merged
merged 28 commits into from
Jun 24, 2025

Conversation

rodrigo-o
Copy link
Collaborator

@rodrigo-o rodrigo-o commented Jun 18, 2025

Motivation

We want to be able to spin up a local network with 3 nodes, ethrex[levm], ethrex[revm] and reth an be able to compare throughput between them on different spamoor configurations.

Description

This PR add a new make target that spin-up a localnet with ethrex[levm], ethrex[revm] and reth, enable the metrics exporter, and prepare the dashboard to be able to be used in arbitrary datasources, both imported or provisioned, automatically setting a datasource variable to the default prometheus.

Copy link

github-actions bot commented Jun 18, 2025

Lines of code report

Total lines added: 3
Total lines removed: 0
Total lines changed: 3

Detailed view
+----------------------------------------+-------+------+
| File                                   | Lines | Diff |
+----------------------------------------+-------+------+
| ethrex/cmd/ethrex/initializers.rs      | 339   | +1   |
+----------------------------------------+-------+------+
| ethrex/crates/blockchain/blockchain.rs | 732   | +2   |
+----------------------------------------+-------+------+

@@ -111,6 +111,7 @@ pub async fn init_rollup_store(data_dir: &str) -> StoreRollup {
}

pub fn init_blockchain(evm_engine: EvmEngine, store: Store) -> Arc<Blockchain> {
info!("Initiating blockchain with EVM: {}", evm_engine);
Copy link
Collaborator Author

@rodrigo-o rodrigo-o Jun 20, 2025

Choose a reason for hiding this comment

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

This is useful to know which evm was configured on startup as with other logs showing config at the init steps.

Comment on lines +395 to +399
"[METRIC] BLOCK EXECUTION THROUGHPUT ({}): {:.2} Ggas/s TIME SPENT: {:.0} ms. Gas Used: {:.0}%, #Txs: {}.",
block.header.number,
throughput,
interval,
(block.header.gas_used as f64 / block.header.gas_limit as f64) * 100.0,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Small addition to show block number and gas_used% along the already shown data in this log.

@rodrigo-o rodrigo-o changed the title feat(l1): running ethrex-only with spamoor and our dashboards feat(l1): running localnet with client comparisions Jun 20, 2025
@rodrigo-o rodrigo-o marked this pull request as ready for review June 20, 2025 16:01
@rodrigo-o rodrigo-o requested a review from a team as a code owner June 20, 2025 16:01
@rodrigo-o rodrigo-o enabled auto-merge June 24, 2025 14:13
@rodrigo-o rodrigo-o added this pull request to the merge queue Jun 24, 2025
Merged via the queue into main with commit 5a39b69 Jun 24, 2025
31 checks passed
@rodrigo-o rodrigo-o deleted the ethrex-only-ggas-test branch June 24, 2025 22:42
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