mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: integrate EngineArgs into NodeCommand (#13748)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -10,7 +10,7 @@ use reth_ethereum_cli::chainspec::EthereumChainSpecParser;
|
||||
use reth_node_builder::{NodeBuilder, WithLaunchContext};
|
||||
use reth_node_core::{
|
||||
args::{
|
||||
DatabaseArgs, DatadirArgs, DebugArgs, DevArgs, NetworkArgs, PayloadBuilderArgs,
|
||||
DatabaseArgs, DatadirArgs, DebugArgs, DevArgs, EngineArgs, NetworkArgs, PayloadBuilderArgs,
|
||||
PruningArgs, RpcServerArgs, TxPoolArgs,
|
||||
},
|
||||
node_config::NodeConfig,
|
||||
@ -107,6 +107,10 @@ pub struct NodeCommand<
|
||||
#[command(flatten)]
|
||||
pub pruning: PruningArgs,
|
||||
|
||||
/// Engine cli arguments
|
||||
#[command(flatten, next_help_heading = "Engine")]
|
||||
pub engine: EngineArgs,
|
||||
|
||||
/// Additional cli arguments
|
||||
#[command(flatten, next_help_heading = "Extension")]
|
||||
pub ext: Ext,
|
||||
@ -160,6 +164,7 @@ impl<
|
||||
dev,
|
||||
pruning,
|
||||
ext,
|
||||
engine,
|
||||
} = self;
|
||||
|
||||
// set up node config
|
||||
@ -177,6 +182,7 @@ impl<
|
||||
db,
|
||||
dev,
|
||||
pruning,
|
||||
engine,
|
||||
};
|
||||
|
||||
let data_dir = node_config.datadir();
|
||||
|
||||
Reference in New Issue
Block a user