diff --git a/bin/reth/src/builder.rs b/bin/reth/src/builder.rs index 73ba5ff8c..41458ac8f 100644 --- a/bin/reth/src/builder.rs +++ b/bin/reth/src/builder.rs @@ -36,6 +36,7 @@ use reth_node_ethereum::{EthEngineTypes, EthEvmConfig}; #[cfg(feature = "optimism")] use reth_node_optimism::{OptimismEngineTypes, OptimismEvmConfig}; use reth_payload_builder::PayloadBuilderHandle; +use reth_primitives::format_ether; use reth_provider::{providers::BlockchainProvider, ProviderFactory}; use reth_prune::PrunerBuilder; use reth_rpc_engine_api::EngineApi; @@ -272,6 +273,9 @@ impl NodeBuilderWit // Configure the pipeline let (mut pipeline, client) = if self.config.dev.dev { info!(target: "reth::cli", "Starting Reth in dev mode"); + for (idx, (address, alloc)) in self.config.chain.genesis.alloc.iter().enumerate() { + info!(target: "reth::cli", "Allocated Genesis Account: {:02}. {} ({} ETH)", idx, address.to_string(), format_ether(alloc.balance)); + } let mining_mode = self.config.mining_mode(transaction_pool.pending_transactions_listener()); diff --git a/crates/node-builder/Cargo.toml b/crates/node-builder/Cargo.toml index 8c63d540f..c9e122e2c 100644 --- a/crates/node-builder/Cargo.toml +++ b/crates/node-builder/Cargo.toml @@ -47,4 +47,4 @@ tokio = { workspace = true, features = [ ## misc eyre.workspace = true fdlimit = "0.3.0" -confy.workspace = true \ No newline at end of file +confy.workspace = true diff --git a/crates/node-builder/src/builder.rs b/crates/node-builder/src/builder.rs index f7f6b583b..45e074c37 100644 --- a/crates/node-builder/src/builder.rs +++ b/crates/node-builder/src/builder.rs @@ -39,7 +39,7 @@ use reth_node_core::{ }; use reth_primitives::{ constants::eip4844::{LoadKzgSettingsError, MAINNET_KZG_TRUSTED_SETUP}, - ChainSpec, + format_ether, ChainSpec, }; use reth_provider::{providers::BlockchainProvider, ChainSpecProvider, ProviderFactory}; use reth_prune::{PrunerBuilder, PrunerEvent}; @@ -444,6 +444,10 @@ where // Configure the pipeline let (mut pipeline, client) = if config.dev.dev { info!(target: "reth::cli", "Starting Reth in dev mode"); + for (idx, (address, alloc)) in config.chain.genesis.alloc.iter().enumerate() { + info!(target: "reth::cli", "Allocated Genesis Account: {:02}. {} ({} ETH)", idx, address.to_string(), format_ether(alloc.balance)); + } + let mining_mode = config.mining_mode(transaction_pool.pending_transactions_listener()); let (_, client, mut task) = reth_auto_seal_consensus::AutoSealBuilder::new( diff --git a/crates/primitives/src/lib.rs b/crates/primitives/src/lib.rs index 88757dfa2..fb35cb2b1 100644 --- a/crates/primitives/src/lib.rs +++ b/crates/primitives/src/lib.rs @@ -100,9 +100,10 @@ pub use self::ruint::UintTryTo; pub use alloy_primitives::{ self, address, b256, bloom, bytes, bytes::{Buf, BufMut, BytesMut}, - eip191_hash_message, hex, hex_literal, keccak256, ruint, Address, BlockHash, BlockNumber, - Bloom, BloomInput, Bytes, ChainId, Selector, StorageKey, StorageValue, TxHash, TxIndex, - TxNumber, B128, B256, B512, B64, U128, U256, U64, U8, + eip191_hash_message, hex, hex_literal, keccak256, ruint, + utils::format_ether, + Address, BlockHash, BlockNumber, Bloom, BloomInput, Bytes, ChainId, Selector, StorageKey, + StorageValue, TxHash, TxIndex, TxNumber, B128, B256, B512, B64, U128, U256, U64, U8, }; pub use reth_ethereum_forks::*; pub use revm_primitives::{self, JumpMap};