Replace use of fully qualified syntax (#12751)

This commit is contained in:
Emilia Hane
2024-11-21 18:53:57 +01:00
committed by GitHub
parent f8d683e80e
commit 3d477e7d6f
6 changed files with 10 additions and 20 deletions

View File

@ -365,8 +365,7 @@ where
<N::ComponentsBuilder as NodeComponentsBuilder<RethFullAdapter<DB, N>>>::Components,
>,
>,
N::Primitives:
FullNodePrimitives<Block: reth_node_api::Block<Body = reth_primitives::BlockBody>>,
N::Primitives: FullNodePrimitives<BlockBody = reth_primitives::BlockBody>,
{
self.node(node).launch().await
}
@ -557,8 +556,7 @@ where
T: NodeTypesWithEngine + NodeTypesForProvider,
CB: NodeComponentsBuilder<RethFullAdapter<DB, T>>,
AO: RethRpcAddOns<NodeAdapter<RethFullAdapter<DB, T>, CB::Components>>,
T::Primitives:
FullNodePrimitives<Block: reth_node_api::Block<Body = reth_primitives::BlockBody>>,
T::Primitives: FullNodePrimitives<BlockBody = reth_primitives::BlockBody>,
{
/// Launches the node with the [`DefaultNodeLauncher`] that sets up engine API consensus and rpc
pub async fn launch(

View File

@ -408,8 +408,7 @@ where
pub async fn create_provider_factory<N>(&self) -> eyre::Result<ProviderFactory<N>>
where
N: ProviderNodeTypes<DB = DB, ChainSpec = ChainSpec>,
N::Primitives:
FullNodePrimitives<Block: reth_node_api::Block<Body = reth_primitives::BlockBody>>,
N::Primitives: FullNodePrimitives<BlockBody = reth_primitives::BlockBody>,
{
let factory = ProviderFactory::new(
self.right().clone(),
@ -476,8 +475,7 @@ where
) -> eyre::Result<LaunchContextWith<Attached<WithConfigs<ChainSpec>, ProviderFactory<N>>>>
where
N: ProviderNodeTypes<DB = DB, ChainSpec = ChainSpec>,
N::Primitives:
FullNodePrimitives<Block: reth_node_api::Block<Body = reth_primitives::BlockBody>>,
N::Primitives: FullNodePrimitives<BlockBody = reth_primitives::BlockBody>,
{
let factory = self.create_provider_factory().await?;
let ctx = LaunchContextWith {

View File

@ -77,8 +77,7 @@ where
LocalPayloadAttributesBuilder<Types::ChainSpec>: PayloadAttributesBuilder<
<<Types as NodeTypesWithEngine>::Engine as PayloadTypes>::PayloadAttributes,
>,
Types::Primitives:
FullNodePrimitives<Block: reth_node_api::Block<Body = reth_primitives::BlockBody>>,
Types::Primitives: FullNodePrimitives<BlockBody = reth_primitives::BlockBody>,
{
type Node = NodeHandle<NodeAdapter<T, CB::Components>, AO>;

View File

@ -102,8 +102,7 @@ where
T: FullNodeTypes<Provider = BlockchainProvider<Types>, Types = Types>,
CB: NodeComponentsBuilder<T>,
AO: RethRpcAddOns<NodeAdapter<T, CB::Components>>,
Types::Primitives:
FullNodePrimitives<Block: reth_node_api::Block<Body = reth_primitives::BlockBody>>,
Types::Primitives: FullNodePrimitives<BlockBody = reth_primitives::BlockBody>,
{
type Node = NodeHandle<NodeAdapter<T, CB::Components>, AO>;

View File

@ -41,8 +41,7 @@ where
N: ProviderNodeTypes,
Client: EthBlockClient + 'static,
Executor: BlockExecutorProvider,
N::Primitives:
FullNodePrimitives<Block: reth_node_api::Block<Body = reth_primitives::BlockBody>>,
N::Primitives: FullNodePrimitives<BlockBody = reth_primitives::BlockBody>,
{
// building network downloaders using the fetch client
let header_downloader = ReverseHeadersDownloaderBuilder::new(config.headers)
@ -92,8 +91,7 @@ where
Body = <<N::Primitives as FullNodePrimitives>::Block as reth_node_api::Block>::Body,
> + 'static,
Executor: BlockExecutorProvider,
N::Primitives:
FullNodePrimitives<Block: reth_node_api::Block<Body = reth_primitives::BlockBody>>,
N::Primitives: FullNodePrimitives<BlockBody = reth_primitives::BlockBody>,
{
let mut builder = Pipeline::<N>::builder();