mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: Upgrade to reth v1.8.2
This commit is contained in:
@ -136,8 +136,9 @@ where
|
||||
// Install the prometheus recorder to be sure to record all metrics
|
||||
let _ = install_prometheus_recorder();
|
||||
|
||||
let components =
|
||||
|spec: Arc<C::ChainSpec>| (HlEvmConfig::new(spec.clone()), HlConsensus::new(spec));
|
||||
let components = |spec: Arc<C::ChainSpec>| {
|
||||
(HlEvmConfig::new(spec.clone()), Arc::new(HlConsensus::new(spec)))
|
||||
};
|
||||
|
||||
match self.command {
|
||||
Commands::Node(command) => runner.run_command_until_exit(|ctx| {
|
||||
@ -157,9 +158,6 @@ where
|
||||
runner.run_command_until_exit(|ctx| command.execute::<HlNode, _>(ctx, components))
|
||||
}
|
||||
Commands::Config(command) => runner.run_until_ctrl_c(command.execute()),
|
||||
Commands::Recover(command) => {
|
||||
runner.run_command_until_exit(|ctx| command.execute::<HlNode>(ctx))
|
||||
}
|
||||
Commands::Prune(command) => runner.run_until_ctrl_c(command.execute::<HlNode>()),
|
||||
Commands::Import(command) => {
|
||||
runner.run_blocking_until_ctrl_c(command.execute::<HlNode, _>(components))
|
||||
|
||||
Reference in New Issue
Block a user