mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: refactor DefaultStages to take StageConfig (#8173)
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
use criterion::{criterion_main, measurement::WallTime, BenchmarkGroup, Criterion};
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use pprof::criterion::{Output, PProfProfiler};
|
||||
use reth_config::config::EtlConfig;
|
||||
use reth_config::config::{EtlConfig, TransactionLookupConfig};
|
||||
use reth_db::{test_utils::TempDatabase, DatabaseEnv};
|
||||
|
||||
use reth_primitives::{stage::StageCheckpoint, BlockNumber};
|
||||
@ -87,7 +87,11 @@ fn transaction_lookup(c: &mut Criterion, runtime: &Runtime) {
|
||||
let mut group = c.benchmark_group("Stages");
|
||||
// don't need to run each stage for that many times
|
||||
group.sample_size(10);
|
||||
let stage = TransactionLookupStage::new(DEFAULT_NUM_BLOCKS, EtlConfig::default(), None);
|
||||
let stage = TransactionLookupStage::new(
|
||||
TransactionLookupConfig { chunk_size: DEFAULT_NUM_BLOCKS },
|
||||
EtlConfig::default(),
|
||||
None,
|
||||
);
|
||||
|
||||
let db = setup::txs_testdata(DEFAULT_NUM_BLOCKS);
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
//! # use reth_provider::HeaderSyncMode;
|
||||
//! # use reth_provider::test_utils::create_test_provider_factory;
|
||||
//! # use reth_static_file::StaticFileProducer;
|
||||
//! # use reth_config::config::EtlConfig;
|
||||
//! # use reth_config::config::StageConfig;
|
||||
//! # use reth_consensus::Consensus;
|
||||
//! # use reth_consensus::test_utils::TestConsensus;
|
||||
//! #
|
||||
@ -62,7 +62,8 @@
|
||||
//! headers_downloader,
|
||||
//! bodies_downloader,
|
||||
//! executor_provider,
|
||||
//! EtlConfig::default(),
|
||||
//! StageConfig::default(),
|
||||
//! PruneModes::default(),
|
||||
//! ))
|
||||
//! .build(provider_factory, static_file_producer);
|
||||
//! ```
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
//! # use reth_provider::StaticFileProviderFactory;
|
||||
//! # use reth_provider::test_utils::create_test_provider_factory;
|
||||
//! # use reth_static_file::StaticFileProducer;
|
||||
//! # use reth_config::config::EtlConfig;
|
||||
//! # use reth_config::config::StageConfig;
|
||||
//! # use reth_evm::execute::BlockExecutorProvider;
|
||||
//!
|
||||
//! # fn create(exec: impl BlockExecutorProvider) {
|
||||
@ -30,7 +30,7 @@
|
||||
//! );
|
||||
//! // Build a pipeline with all offline stages.
|
||||
//! let pipeline = Pipeline::builder()
|
||||
//! .add_stages(OfflineStages::new(exec, EtlConfig::default()))
|
||||
//! .add_stages(OfflineStages::new(exec, StageConfig::default(), PruneModes::default()))
|
||||
//! .build(provider_factory, static_file_producer);
|
||||
//!
|
||||
//! # }
|
||||
@ -43,13 +43,14 @@ use crate::{
|
||||
},
|
||||
StageSet, StageSetBuilder,
|
||||
};
|
||||
use reth_config::config::EtlConfig;
|
||||
use reth_config::config::StageConfig;
|
||||
use reth_consensus::Consensus;
|
||||
use reth_db::database::Database;
|
||||
use reth_evm::execute::BlockExecutorProvider;
|
||||
use reth_interfaces::p2p::{
|
||||
bodies::downloader::BodyDownloader, headers::downloader::HeaderDownloader,
|
||||
};
|
||||
use reth_primitives::PruneModes;
|
||||
use reth_provider::{HeaderSyncGapProvider, HeaderSyncMode};
|
||||
use std::sync::Arc;
|
||||
|
||||
@ -80,12 +81,15 @@ pub struct DefaultStages<Provider, H, B, EF> {
|
||||
online: OnlineStages<Provider, H, B>,
|
||||
/// Executor factory needs for execution stage
|
||||
executor_factory: EF,
|
||||
/// ETL configuration
|
||||
etl_config: EtlConfig,
|
||||
/// Configuration for each stage in the pipeline
|
||||
stages_config: StageConfig,
|
||||
/// Prune configuration for every segment that can be pruned
|
||||
prune_modes: PruneModes,
|
||||
}
|
||||
|
||||
impl<Provider, H, B, E> DefaultStages<Provider, H, B, E> {
|
||||
/// Create a new set of default stages with default values.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
provider: Provider,
|
||||
header_mode: HeaderSyncMode,
|
||||
@ -93,7 +97,8 @@ impl<Provider, H, B, E> DefaultStages<Provider, H, B, E> {
|
||||
header_downloader: H,
|
||||
body_downloader: B,
|
||||
executor_factory: E,
|
||||
etl_config: EtlConfig,
|
||||
stages_config: StageConfig,
|
||||
prune_modes: PruneModes,
|
||||
) -> Self
|
||||
where
|
||||
E: BlockExecutorProvider,
|
||||
@ -105,10 +110,11 @@ impl<Provider, H, B, E> DefaultStages<Provider, H, B, E> {
|
||||
consensus,
|
||||
header_downloader,
|
||||
body_downloader,
|
||||
etl_config.clone(),
|
||||
stages_config.clone(),
|
||||
),
|
||||
executor_factory,
|
||||
etl_config,
|
||||
stages_config,
|
||||
prune_modes,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -121,11 +127,12 @@ where
|
||||
pub fn add_offline_stages<DB: Database>(
|
||||
default_offline: StageSetBuilder<DB>,
|
||||
executor_factory: E,
|
||||
etl_config: EtlConfig,
|
||||
stages_config: StageConfig,
|
||||
prune_modes: PruneModes,
|
||||
) -> StageSetBuilder<DB> {
|
||||
StageSetBuilder::default()
|
||||
.add_set(default_offline)
|
||||
.add_set(OfflineStages::new(executor_factory, etl_config))
|
||||
.add_set(OfflineStages::new(executor_factory, stages_config, prune_modes))
|
||||
.add_stage(FinishStage)
|
||||
}
|
||||
}
|
||||
@ -139,7 +146,12 @@ where
|
||||
DB: Database + 'static,
|
||||
{
|
||||
fn builder(self) -> StageSetBuilder<DB> {
|
||||
Self::add_offline_stages(self.online.builder(), self.executor_factory, self.etl_config)
|
||||
Self::add_offline_stages(
|
||||
self.online.builder(),
|
||||
self.executor_factory,
|
||||
self.stages_config.clone(),
|
||||
self.prune_modes,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -159,8 +171,8 @@ pub struct OnlineStages<Provider, H, B> {
|
||||
header_downloader: H,
|
||||
/// The block body downloader
|
||||
body_downloader: B,
|
||||
/// ETL configuration
|
||||
etl_config: EtlConfig,
|
||||
/// Configuration for each stage in the pipeline
|
||||
stages_config: StageConfig,
|
||||
}
|
||||
|
||||
impl<Provider, H, B> OnlineStages<Provider, H, B> {
|
||||
@ -171,9 +183,9 @@ impl<Provider, H, B> OnlineStages<Provider, H, B> {
|
||||
consensus: Arc<dyn Consensus>,
|
||||
header_downloader: H,
|
||||
body_downloader: B,
|
||||
etl_config: EtlConfig,
|
||||
stages_config: StageConfig,
|
||||
) -> Self {
|
||||
Self { provider, header_mode, consensus, header_downloader, body_downloader, etl_config }
|
||||
Self { provider, header_mode, consensus, header_downloader, body_downloader, stages_config }
|
||||
}
|
||||
}
|
||||
|
||||
@ -198,7 +210,7 @@ where
|
||||
mode: HeaderSyncMode,
|
||||
header_downloader: H,
|
||||
consensus: Arc<dyn Consensus>,
|
||||
etl_config: EtlConfig,
|
||||
stages_config: StageConfig,
|
||||
) -> StageSetBuilder<DB> {
|
||||
StageSetBuilder::default()
|
||||
.add_stage(HeaderStage::new(
|
||||
@ -206,7 +218,7 @@ where
|
||||
header_downloader,
|
||||
mode,
|
||||
consensus.clone(),
|
||||
etl_config,
|
||||
stages_config.etl,
|
||||
))
|
||||
.add_stage(bodies)
|
||||
}
|
||||
@ -226,7 +238,7 @@ where
|
||||
self.header_downloader,
|
||||
self.header_mode,
|
||||
self.consensus.clone(),
|
||||
self.etl_config.clone(),
|
||||
self.stages_config.etl.clone(),
|
||||
))
|
||||
.add_stage(BodyStage::new(self.body_downloader))
|
||||
}
|
||||
@ -244,14 +256,16 @@ where
|
||||
pub struct OfflineStages<EF> {
|
||||
/// Executor factory needs for execution stage
|
||||
pub executor_factory: EF,
|
||||
/// ETL configuration
|
||||
etl_config: EtlConfig,
|
||||
/// Configuration for each stage in the pipeline
|
||||
stages_config: StageConfig,
|
||||
/// Prune configuration for every segment that can be pruned
|
||||
prune_modes: PruneModes,
|
||||
}
|
||||
|
||||
impl<EF> OfflineStages<EF> {
|
||||
/// Create a new set of offline stages with default values.
|
||||
pub fn new(executor_factory: EF, etl_config: EtlConfig) -> Self {
|
||||
Self { executor_factory, etl_config }
|
||||
pub fn new(executor_factory: EF, stages_config: StageConfig, prune_modes: PruneModes) -> Self {
|
||||
Self { executor_factory, stages_config, prune_modes }
|
||||
}
|
||||
}
|
||||
|
||||
@ -261,10 +275,17 @@ where
|
||||
DB: Database,
|
||||
{
|
||||
fn builder(self) -> StageSetBuilder<DB> {
|
||||
ExecutionStages::new(self.executor_factory)
|
||||
.builder()
|
||||
.add_set(HashingStages { etl_config: self.etl_config.clone() })
|
||||
.add_set(HistoryIndexingStages { etl_config: self.etl_config })
|
||||
ExecutionStages::new(
|
||||
self.executor_factory,
|
||||
self.stages_config.clone(),
|
||||
self.prune_modes.clone(),
|
||||
)
|
||||
.builder()
|
||||
.add_set(HashingStages { stages_config: self.stages_config.clone() })
|
||||
.add_set(HistoryIndexingStages {
|
||||
stages_config: self.stages_config.clone(),
|
||||
prune_modes: self.prune_modes,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@ -274,12 +295,16 @@ where
|
||||
pub struct ExecutionStages<E> {
|
||||
/// Executor factory that will create executors.
|
||||
executor_factory: E,
|
||||
/// Configuration for each stage in the pipeline
|
||||
stages_config: StageConfig,
|
||||
/// Prune configuration for every segment that can be pruned
|
||||
prune_modes: PruneModes,
|
||||
}
|
||||
|
||||
impl<E> ExecutionStages<E> {
|
||||
/// Create a new set of execution stages with default values.
|
||||
pub fn new(executor_factory: E) -> Self {
|
||||
Self { executor_factory }
|
||||
pub fn new(executor_factory: E, stages_config: StageConfig, prune_modes: PruneModes) -> Self {
|
||||
Self { executor_factory, stages_config, prune_modes }
|
||||
}
|
||||
}
|
||||
|
||||
@ -290,8 +315,13 @@ where
|
||||
{
|
||||
fn builder(self) -> StageSetBuilder<DB> {
|
||||
StageSetBuilder::default()
|
||||
.add_stage(SenderRecoveryStage::default())
|
||||
.add_stage(ExecutionStage::new_with_executor(self.executor_factory))
|
||||
.add_stage(SenderRecoveryStage::new(self.stages_config.sender_recovery))
|
||||
.add_stage(ExecutionStage::from_config(
|
||||
self.executor_factory,
|
||||
self.stages_config.execution,
|
||||
self.stages_config.execution_external_clean_threshold(),
|
||||
self.prune_modes,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
@ -299,17 +329,23 @@ where
|
||||
#[derive(Debug, Default)]
|
||||
#[non_exhaustive]
|
||||
pub struct HashingStages {
|
||||
/// ETL configuration
|
||||
etl_config: EtlConfig,
|
||||
/// Configuration for each stage in the pipeline
|
||||
stages_config: StageConfig,
|
||||
}
|
||||
|
||||
impl<DB: Database> StageSet<DB> for HashingStages {
|
||||
fn builder(self) -> StageSetBuilder<DB> {
|
||||
StageSetBuilder::default()
|
||||
.add_stage(MerkleStage::default_unwind())
|
||||
.add_stage(AccountHashingStage::default().with_etl_config(self.etl_config.clone()))
|
||||
.add_stage(StorageHashingStage::default().with_etl_config(self.etl_config))
|
||||
.add_stage(MerkleStage::default_execution())
|
||||
.add_stage(AccountHashingStage::new(
|
||||
self.stages_config.account_hashing,
|
||||
self.stages_config.etl.clone(),
|
||||
))
|
||||
.add_stage(StorageHashingStage::new(
|
||||
self.stages_config.storage_hashing,
|
||||
self.stages_config.etl.clone(),
|
||||
))
|
||||
.add_stage(MerkleStage::new_execution(self.stages_config.merkle.clean_threshold))
|
||||
}
|
||||
}
|
||||
|
||||
@ -317,15 +353,29 @@ impl<DB: Database> StageSet<DB> for HashingStages {
|
||||
#[derive(Debug, Default)]
|
||||
#[non_exhaustive]
|
||||
pub struct HistoryIndexingStages {
|
||||
/// ETL configuration
|
||||
etl_config: EtlConfig,
|
||||
/// Configuration for each stage in the pipeline
|
||||
stages_config: StageConfig,
|
||||
/// Prune configuration for every segment that can be pruned
|
||||
prune_modes: PruneModes,
|
||||
}
|
||||
|
||||
impl<DB: Database> StageSet<DB> for HistoryIndexingStages {
|
||||
fn builder(self) -> StageSetBuilder<DB> {
|
||||
StageSetBuilder::default()
|
||||
.add_stage(TransactionLookupStage::default().with_etl_config(self.etl_config.clone()))
|
||||
.add_stage(IndexStorageHistoryStage::default().with_etl_config(self.etl_config.clone()))
|
||||
.add_stage(IndexAccountHistoryStage::default().with_etl_config(self.etl_config))
|
||||
.add_stage(TransactionLookupStage::new(
|
||||
self.stages_config.transaction_lookup,
|
||||
self.stages_config.etl.clone(),
|
||||
self.prune_modes.transaction_lookup,
|
||||
))
|
||||
.add_stage(IndexStorageHistoryStage::new(
|
||||
self.stages_config.index_storage_history,
|
||||
self.stages_config.etl.clone(),
|
||||
self.prune_modes.account_history,
|
||||
))
|
||||
.add_stage(IndexAccountHistoryStage::new(
|
||||
self.stages_config.index_account_history,
|
||||
self.stages_config.etl.clone(),
|
||||
self.prune_modes.storage_history,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
use crate::stages::MERKLE_STAGE_DEFAULT_CLEAN_THRESHOLD;
|
||||
use num_traits::Zero;
|
||||
use reth_config::config::ExecutionConfig;
|
||||
use reth_db::{
|
||||
cursor::DbCursorRO, database::Database, static_file::HeaderMask, tables, transaction::DbTx,
|
||||
};
|
||||
@ -111,6 +112,22 @@ impl<E> ExecutionStage<E> {
|
||||
)
|
||||
}
|
||||
|
||||
/// Create new instance of [ExecutionStage] from configuration.
|
||||
pub fn from_config(
|
||||
executor_provider: E,
|
||||
config: ExecutionConfig,
|
||||
external_clean_threshold: u64,
|
||||
prune_modes: PruneModes,
|
||||
) -> Self {
|
||||
Self::new(
|
||||
executor_provider,
|
||||
config.into(),
|
||||
external_clean_threshold,
|
||||
prune_modes,
|
||||
ExExManagerHandle::empty(),
|
||||
)
|
||||
}
|
||||
|
||||
/// Set the metric events sender.
|
||||
pub fn with_metrics_tx(mut self, metrics_tx: MetricEventsSender) -> Self {
|
||||
self.metrics_tx = Some(metrics_tx);
|
||||
@ -540,6 +557,17 @@ impl ExecutionStageThresholds {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<ExecutionConfig> for ExecutionStageThresholds {
|
||||
fn from(config: ExecutionConfig) -> Self {
|
||||
ExecutionStageThresholds {
|
||||
max_blocks: config.max_blocks,
|
||||
max_changes: config.max_changes,
|
||||
max_cumulative_gas: config.max_cumulative_gas,
|
||||
max_duration: config.max_duration,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns a `StaticFileProviderRWRefMut` static file producer after performing a consistency
|
||||
/// check.
|
||||
///
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use itertools::Itertools;
|
||||
use reth_config::config::EtlConfig;
|
||||
use reth_config::config::{EtlConfig, HashingConfig};
|
||||
use reth_db::{
|
||||
cursor::{DbCursorRO, DbCursorRW},
|
||||
database::Database,
|
||||
@ -44,14 +44,12 @@ pub struct AccountHashingStage {
|
||||
|
||||
impl AccountHashingStage {
|
||||
/// Create new instance of [AccountHashingStage].
|
||||
pub fn new(clean_threshold: u64, commit_threshold: u64, etl_config: EtlConfig) -> Self {
|
||||
Self { clean_threshold, commit_threshold, etl_config }
|
||||
}
|
||||
|
||||
/// Set the ETL configuration to use.
|
||||
pub fn with_etl_config(mut self, etl_config: EtlConfig) -> Self {
|
||||
self.etl_config = etl_config;
|
||||
self
|
||||
pub fn new(config: HashingConfig, etl_config: EtlConfig) -> Self {
|
||||
Self {
|
||||
clean_threshold: config.clean_threshold,
|
||||
commit_threshold: config.commit_threshold,
|
||||
etl_config,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use itertools::Itertools;
|
||||
use reth_config::config::EtlConfig;
|
||||
use reth_config::config::{EtlConfig, HashingConfig};
|
||||
use reth_db::{
|
||||
codecs::CompactU256,
|
||||
cursor::{DbCursorRO, DbDupCursorRW},
|
||||
@ -45,14 +45,12 @@ pub struct StorageHashingStage {
|
||||
|
||||
impl StorageHashingStage {
|
||||
/// Create new instance of [StorageHashingStage].
|
||||
pub fn new(clean_threshold: u64, commit_threshold: u64, etl_config: EtlConfig) -> Self {
|
||||
Self { clean_threshold, commit_threshold, etl_config }
|
||||
}
|
||||
|
||||
/// Set the ETL configuration to use.
|
||||
pub fn with_etl_config(mut self, etl_config: EtlConfig) -> Self {
|
||||
self.etl_config = etl_config;
|
||||
self
|
||||
pub fn new(config: HashingConfig, etl_config: EtlConfig) -> Self {
|
||||
Self {
|
||||
clean_threshold: config.clean_threshold,
|
||||
commit_threshold: config.commit_threshold,
|
||||
etl_config,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use super::{collect_history_indices, load_history_indices};
|
||||
use reth_config::config::EtlConfig;
|
||||
use reth_config::config::{EtlConfig, IndexHistoryConfig};
|
||||
use reth_db::{
|
||||
database::Database, models::ShardedKey, table::Decode, tables, transaction::DbTxMut,
|
||||
};
|
||||
@ -31,17 +31,11 @@ pub struct IndexAccountHistoryStage {
|
||||
impl IndexAccountHistoryStage {
|
||||
/// Create new instance of [IndexAccountHistoryStage].
|
||||
pub fn new(
|
||||
commit_threshold: u64,
|
||||
prune_mode: Option<PruneMode>,
|
||||
config: IndexHistoryConfig,
|
||||
etl_config: EtlConfig,
|
||||
prune_mode: Option<PruneMode>,
|
||||
) -> Self {
|
||||
Self { commit_threshold, prune_mode, etl_config }
|
||||
}
|
||||
|
||||
/// Set the ETL configuration to use.
|
||||
pub fn with_etl_config(mut self, etl_config: EtlConfig) -> Self {
|
||||
self.etl_config = etl_config;
|
||||
self
|
||||
Self { commit_threshold: config.commit_threshold, etl_config, prune_mode }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use super::{collect_history_indices, load_history_indices};
|
||||
use reth_config::config::EtlConfig;
|
||||
use reth_config::config::{EtlConfig, IndexHistoryConfig};
|
||||
use reth_db::{
|
||||
database::Database,
|
||||
models::{storage_sharded_key::StorageShardedKey, AddressStorageKey, BlockNumberAddress},
|
||||
@ -35,17 +35,11 @@ pub struct IndexStorageHistoryStage {
|
||||
impl IndexStorageHistoryStage {
|
||||
/// Create new instance of [IndexStorageHistoryStage].
|
||||
pub fn new(
|
||||
commit_threshold: u64,
|
||||
prune_mode: Option<PruneMode>,
|
||||
config: IndexHistoryConfig,
|
||||
etl_config: EtlConfig,
|
||||
prune_mode: Option<PruneMode>,
|
||||
) -> Self {
|
||||
Self { commit_threshold, prune_mode, etl_config }
|
||||
}
|
||||
|
||||
/// Set the ETL configuration to use.
|
||||
pub fn with_etl_config(mut self, etl_config: EtlConfig) -> Self {
|
||||
self.etl_config = etl_config;
|
||||
self
|
||||
Self { commit_threshold: config.commit_threshold, prune_mode, etl_config }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
use reth_config::config::SenderRecoveryConfig;
|
||||
use reth_consensus::ConsensusError;
|
||||
use reth_db::{
|
||||
cursor::DbCursorRW,
|
||||
@ -42,8 +43,8 @@ pub struct SenderRecoveryStage {
|
||||
|
||||
impl SenderRecoveryStage {
|
||||
/// Create new instance of [SenderRecoveryStage].
|
||||
pub fn new(commit_threshold: u64) -> Self {
|
||||
Self { commit_threshold }
|
||||
pub fn new(config: SenderRecoveryConfig) -> Self {
|
||||
Self { commit_threshold: config.commit_threshold }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use num_traits::Zero;
|
||||
use reth_config::config::EtlConfig;
|
||||
use reth_config::config::{EtlConfig, TransactionLookupConfig};
|
||||
use reth_db::{
|
||||
cursor::{DbCursorRO, DbCursorRW},
|
||||
database::Database,
|
||||
@ -45,14 +45,12 @@ impl Default for TransactionLookupStage {
|
||||
|
||||
impl TransactionLookupStage {
|
||||
/// Create new instance of [TransactionLookupStage].
|
||||
pub fn new(chunk_size: u64, etl_config: EtlConfig, prune_mode: Option<PruneMode>) -> Self {
|
||||
Self { chunk_size, etl_config, prune_mode }
|
||||
}
|
||||
|
||||
/// Set the ETL configuration to use.
|
||||
pub fn with_etl_config(mut self, etl_config: EtlConfig) -> Self {
|
||||
self.etl_config = etl_config;
|
||||
self
|
||||
pub fn new(
|
||||
config: TransactionLookupConfig,
|
||||
etl_config: EtlConfig,
|
||||
prune_mode: Option<PruneMode>,
|
||||
) -> Self {
|
||||
Self { chunk_size: config.chunk_size, etl_config, prune_mode }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user