mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
chore: small NodeBuilder simplification (#14755)
This commit is contained in:
@@ -541,24 +541,14 @@ where
|
||||
pub const fn check_launch(self) -> Self {
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, DB, CB, AO> WithLaunchContext<NodeBuilderWithComponents<RethFullAdapter<DB, T>, CB, AO>>
|
||||
where
|
||||
DB: Database + DatabaseMetrics + Clone + Unpin + 'static,
|
||||
T: NodeTypesWithEngine + NodeTypesForProvider,
|
||||
CB: NodeComponentsBuilder<RethFullAdapter<DB, T>>,
|
||||
AO: RethRpcAddOns<NodeAdapter<RethFullAdapter<DB, T>, CB::Components>>,
|
||||
EngineNodeLauncher: LaunchNode<NodeBuilderWithComponents<RethFullAdapter<DB, T>, CB, AO>>,
|
||||
{
|
||||
/// Launches the node with the [`EngineNodeLauncher`] that sets up engine API consensus and rpc
|
||||
pub async fn launch(
|
||||
self,
|
||||
) -> eyre::Result<
|
||||
<EngineNodeLauncher as LaunchNode<
|
||||
NodeBuilderWithComponents<RethFullAdapter<DB, T>, CB, AO>,
|
||||
>>::Node,
|
||||
> {
|
||||
) -> eyre::Result<<EngineNodeLauncher as LaunchNode<NodeBuilderWithComponents<T, CB, AO>>>::Node>
|
||||
where
|
||||
EngineNodeLauncher: LaunchNode<NodeBuilderWithComponents<T, CB, AO>>,
|
||||
{
|
||||
let Self { builder, task_executor } = self;
|
||||
|
||||
let engine_tree_config = TreeConfig::default()
|
||||
@@ -582,14 +572,10 @@ where
|
||||
/// if they are configured.
|
||||
pub async fn launch_with_debug_capabilities(
|
||||
self,
|
||||
) -> eyre::Result<
|
||||
<DebugNodeLauncher as LaunchNode<
|
||||
NodeBuilderWithComponents<RethFullAdapter<DB, T>, CB, AO>,
|
||||
>>::Node,
|
||||
>
|
||||
) -> eyre::Result<<DebugNodeLauncher as LaunchNode<NodeBuilderWithComponents<T, CB, AO>>>::Node>
|
||||
where
|
||||
T: DebugNode<NodeAdapter<RethFullAdapter<DB, T>, CB::Components>>,
|
||||
DebugNodeLauncher: LaunchNode<NodeBuilderWithComponents<RethFullAdapter<DB, T>, CB, AO>>,
|
||||
T::Types: DebugNode<NodeAdapter<T, CB::Components>>,
|
||||
DebugNodeLauncher: LaunchNode<NodeBuilderWithComponents<T, CB, AO>>,
|
||||
{
|
||||
let Self { builder, task_executor } = self;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user