refactor(sdk): complete generic impl for PersistenceService over N::Primitives (#13044)

This commit is contained in:
Léa Narzis
2024-12-04 11:50:46 +01:00
committed by GitHub
parent c060df92af
commit 025885f2ad
5 changed files with 143 additions and 131 deletions

View File

@ -18,6 +18,7 @@ reth-engine-tree.workspace = true
reth-evm.workspace = true
reth-network-p2p.workspace = true
reth-payload-builder.workspace = true
reth-primitives.workspace = true
reth-provider.workspace = true
reth-prune.workspace = true
reth-stages-api.workspace = true

View File

@ -19,6 +19,7 @@ use reth_evm::execute::BlockExecutorProvider;
use reth_network_p2p::EthBlockClient;
use reth_node_types::{BlockTy, NodeTypesWithEngine};
use reth_payload_builder::PayloadBuilderHandle;
use reth_primitives::EthPrimitives;
use reth_provider::{providers::BlockchainProvider2, ProviderFactory};
use reth_prune::PrunerWithFactory;
use reth_stages_api::{MetricEventsSender, Pipeline};
@ -90,7 +91,7 @@ where
let downloader = BasicBlockDownloader::new(client, consensus.clone().as_consensus());
let persistence_handle =
PersistenceHandle::spawn_service(provider, pruner, sync_metrics_tx);
PersistenceHandle::<EthPrimitives>::spawn_service(provider, pruner, sync_metrics_tx);
let canonical_in_memory_state = blockchain_db.canonical_in_memory_state();