feat(node): dev node print genesis account (#6819)

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
Delweng
2024-02-27 20:08:17 +08:00
committed by GitHub
parent a27626cc22
commit 8d258bb7e7
4 changed files with 14 additions and 5 deletions

View File

@@ -47,4 +47,4 @@ tokio = { workspace = true, features = [
## misc
eyre.workspace = true
fdlimit = "0.3.0"
confy.workspace = true
confy.workspace = true

View File

@@ -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(