mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
feat(node): dev node print genesis account (#6819)
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
@ -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<DB: Database + DatabaseMetrics + DatabaseMetadata + 'static> 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());
|
||||
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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};
|
||||
|
||||
Reference in New Issue
Block a user