mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: remove StaticFileProvider field from StaticFileProducer (#8583)
This commit is contained in:
@ -436,7 +436,6 @@ mod tests {
|
||||
};
|
||||
use reth_provider::{
|
||||
test_utils::create_test_provider_factory_with_chain_spec, BundleStateWithReceipts,
|
||||
StaticFileProviderFactory,
|
||||
};
|
||||
use reth_stages::{test_utils::TestStages, ExecOutput, StageError};
|
||||
use reth_static_file::StaticFileProducer;
|
||||
@ -499,11 +498,8 @@ mod tests {
|
||||
|
||||
let provider_factory = create_test_provider_factory_with_chain_spec(chain_spec);
|
||||
|
||||
let static_file_producer = StaticFileProducer::new(
|
||||
provider_factory.clone(),
|
||||
provider_factory.static_file_provider(),
|
||||
PruneModes::default(),
|
||||
);
|
||||
let static_file_producer =
|
||||
StaticFileProducer::new(provider_factory.clone(), PruneModes::default());
|
||||
|
||||
pipeline.build(provider_factory, static_file_producer)
|
||||
}
|
||||
|
||||
@ -24,7 +24,7 @@ use reth_payload_builder::test_utils::spawn_test_payload_service;
|
||||
use reth_primitives::{BlockNumber, ChainSpec, FinishedExExHeight, PruneModes, B256};
|
||||
use reth_provider::{
|
||||
providers::BlockchainProvider, test_utils::create_test_provider_factory_with_chain_spec,
|
||||
BundleStateWithReceipts, HeaderSyncMode, StaticFileProviderFactory,
|
||||
BundleStateWithReceipts, HeaderSyncMode,
|
||||
};
|
||||
use reth_prune::Pruner;
|
||||
use reth_rpc_types::engine::{
|
||||
@ -349,11 +349,8 @@ where
|
||||
}
|
||||
};
|
||||
|
||||
let static_file_producer = StaticFileProducer::new(
|
||||
provider_factory.clone(),
|
||||
provider_factory.static_file_provider(),
|
||||
PruneModes::default(),
|
||||
);
|
||||
let static_file_producer =
|
||||
StaticFileProducer::new(provider_factory.clone(), PruneModes::default());
|
||||
|
||||
// Setup pipeline
|
||||
let (tip_tx, tip_rx) = watch::channel(B256::default());
|
||||
|
||||
Reference in New Issue
Block a user