mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Replace use of fully qualified syntax (#12751)
This commit is contained in:
@ -59,8 +59,7 @@ where
|
||||
Components: NodeComponents<TmpNodeAdapter<N>, Network: PeersHandleProvider>,
|
||||
>,
|
||||
N::AddOns: RethRpcAddOns<Adapter<N>>,
|
||||
N::Primitives:
|
||||
FullNodePrimitives<Block: reth_node_api::Block<Body = reth_primitives::BlockBody>>,
|
||||
N::Primitives: FullNodePrimitives<BlockBody = reth_primitives::BlockBody>,
|
||||
{
|
||||
let tasks = TaskManager::current();
|
||||
let exec = tasks.executor();
|
||||
@ -135,8 +134,7 @@ where
|
||||
LocalPayloadAttributesBuilder<N::ChainSpec>: PayloadAttributesBuilder<
|
||||
<<N as NodeTypesWithEngine>::Engine as PayloadTypes>::PayloadAttributes,
|
||||
>,
|
||||
N::Primitives:
|
||||
FullNodePrimitives<Block: reth_node_api::Block<Body = reth_primitives::BlockBody>>,
|
||||
N::Primitives: FullNodePrimitives<BlockBody = reth_primitives::BlockBody>,
|
||||
{
|
||||
let tasks = TaskManager::current();
|
||||
let exec = tasks.executor();
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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>;
|
||||
|
||||
|
||||
@ -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>;
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user