mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: read precompile draft (dirty)
This commit is contained in:
@ -37,7 +37,7 @@ use reth_provider::{
|
||||
use reth_tasks::TaskExecutor;
|
||||
use reth_transaction_pool::{PoolConfig, PoolTransaction, TransactionPool};
|
||||
use secp256k1::SecretKey;
|
||||
use std::sync::Arc;
|
||||
use std::{path::PathBuf, sync::Arc};
|
||||
use tracing::{info, trace, warn};
|
||||
|
||||
pub mod add_ons;
|
||||
@ -750,6 +750,10 @@ impl<Node: FullNodeTypes> BuilderContext<Node> {
|
||||
{
|
||||
network_builder.build(self.provider.clone())
|
||||
}
|
||||
|
||||
pub fn ingest_dir(&self) -> PathBuf {
|
||||
self.config().ingest_dir.clone().expect("ingest dir not set")
|
||||
}
|
||||
}
|
||||
|
||||
impl<Node: FullNodeTypes<Types: NodeTypes<ChainSpec: Hardforks>>> BuilderContext<Node> {
|
||||
|
||||
@ -145,6 +145,9 @@ pub struct NodeConfig<ChainSpec> {
|
||||
|
||||
/// All engine related arguments
|
||||
pub engine: EngineArgs,
|
||||
|
||||
/// The ingest directory for the node.
|
||||
pub ingest_dir: Option<PathBuf>,
|
||||
}
|
||||
|
||||
impl NodeConfig<ChainSpec> {
|
||||
@ -174,6 +177,7 @@ impl<ChainSpec> NodeConfig<ChainSpec> {
|
||||
pruning: PruningArgs::default(),
|
||||
datadir: DatadirArgs::default(),
|
||||
engine: EngineArgs::default(),
|
||||
ingest_dir: None,
|
||||
}
|
||||
}
|
||||
|
||||
@ -465,6 +469,7 @@ impl<ChainSpec> NodeConfig<ChainSpec> {
|
||||
dev: self.dev,
|
||||
pruning: self.pruning,
|
||||
engine: self.engine,
|
||||
ingest_dir: self.ingest_dir,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -492,6 +497,7 @@ impl<ChainSpec> Clone for NodeConfig<ChainSpec> {
|
||||
pruning: self.pruning.clone(),
|
||||
datadir: self.datadir.clone(),
|
||||
engine: self.engine.clone(),
|
||||
ingest_dir: self.ingest_dir.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user