mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: StaticFileProviderFactory (#7983)
This commit is contained in:
@ -7,7 +7,7 @@ use reth_db::{
|
||||
TableViewer, Tables,
|
||||
};
|
||||
use reth_primitives::{static_file::find_fixed_range, StaticFileSegment};
|
||||
use reth_provider::ProviderFactory;
|
||||
use reth_provider::{ProviderFactory, StaticFileProviderFactory};
|
||||
|
||||
/// The arguments for the `reth db clear` command
|
||||
#[derive(Parser, Debug)]
|
||||
|
||||
@ -7,6 +7,7 @@ use reth_db::{
|
||||
tables, RawKey, RawTable, Receipts, TableViewer, Transactions,
|
||||
};
|
||||
use reth_primitives::{BlockHash, Header, StaticFileSegment};
|
||||
use reth_provider::StaticFileProviderFactory;
|
||||
use tracing::error;
|
||||
|
||||
/// The arguments for the `reth db get` command
|
||||
|
||||
@ -29,7 +29,10 @@ use reth_node_ethereum::EthEvmConfig;
|
||||
use reth_primitives::{
|
||||
fs, stage::StageId, BlockHashOrNumber, BlockNumber, ChainSpec, PruneModes, B256,
|
||||
};
|
||||
use reth_provider::{BlockExecutionWriter, HeaderSyncMode, ProviderFactory, StageCheckpointReader};
|
||||
use reth_provider::{
|
||||
BlockExecutionWriter, HeaderSyncMode, ProviderFactory, StageCheckpointReader,
|
||||
StaticFileProviderFactory,
|
||||
};
|
||||
use reth_stages::{
|
||||
sets::DefaultStages,
|
||||
stages::{ExecutionStage, ExecutionStageThresholds, SenderRecoveryStage},
|
||||
|
||||
@ -21,7 +21,8 @@ use reth_node_ethereum::EthEvmConfig;
|
||||
use reth_primitives::{fs, stage::StageId, BlockHashOrNumber, ChainSpec};
|
||||
use reth_provider::{
|
||||
AccountExtReader, ExecutorFactory, HashingWriter, HeaderProvider, LatestStateProviderRef,
|
||||
OriginalValuesKnown, ProviderFactory, StageCheckpointReader, StorageReader,
|
||||
OriginalValuesKnown, ProviderFactory, StageCheckpointReader, StaticFileProviderFactory,
|
||||
StorageReader,
|
||||
};
|
||||
use reth_tasks::TaskExecutor;
|
||||
use reth_trie::{updates::TrieKey, StateRoot};
|
||||
|
||||
@ -24,7 +24,10 @@ use reth_node_core::engine_api_store::{EngineApiStore, StoredEngineApiMessage};
|
||||
use reth_node_ethereum::{EthEngineTypes, EthEvmConfig};
|
||||
use reth_payload_builder::{PayloadBuilderHandle, PayloadBuilderService};
|
||||
use reth_primitives::{fs, ChainSpec, PruneModes};
|
||||
use reth_provider::{providers::BlockchainProvider, CanonStateSubscriptions, ProviderFactory};
|
||||
use reth_provider::{
|
||||
providers::BlockchainProvider, CanonStateSubscriptions, ProviderFactory,
|
||||
StaticFileProviderFactory,
|
||||
};
|
||||
use reth_revm::EvmProcessorFactory;
|
||||
use reth_stages::Pipeline;
|
||||
use reth_static_file::StaticFileProducer;
|
||||
|
||||
@ -31,7 +31,7 @@ use reth_node_events::node::NodeEvent;
|
||||
use reth_primitives::{stage::StageId, ChainSpec, PruneModes, B256};
|
||||
use reth_provider::{
|
||||
BlockNumReader, HeaderProvider, HeaderSyncMode, ProviderError, ProviderFactory,
|
||||
StageCheckpointReader,
|
||||
StageCheckpointReader, StaticFileProviderFactory,
|
||||
};
|
||||
use reth_stages::{
|
||||
prelude::*,
|
||||
|
||||
@ -15,7 +15,7 @@ use reth_node_core::init::{insert_genesis_header, insert_genesis_history, insert
|
||||
use reth_primitives::{
|
||||
fs, stage::StageId, static_file::find_fixed_range, ChainSpec, StaticFileSegment,
|
||||
};
|
||||
use reth_provider::{providers::StaticFileWriter, ProviderFactory};
|
||||
use reth_provider::{providers::StaticFileWriter, ProviderFactory, StaticFileProviderFactory};
|
||||
use std::sync::Arc;
|
||||
|
||||
/// `reth drop-stage` command
|
||||
|
||||
@ -21,7 +21,9 @@ use reth_downloaders::bodies::bodies::BodiesDownloaderBuilder;
|
||||
use reth_exex::ExExManagerHandle;
|
||||
use reth_node_ethereum::EthEvmConfig;
|
||||
use reth_primitives::ChainSpec;
|
||||
use reth_provider::{ProviderFactory, StageCheckpointReader, StageCheckpointWriter};
|
||||
use reth_provider::{
|
||||
ProviderFactory, StageCheckpointReader, StageCheckpointWriter, StaticFileProviderFactory,
|
||||
};
|
||||
use reth_stages::{
|
||||
stages::{
|
||||
AccountHashingStage, BodyStage, ExecutionStage, ExecutionStageThresholds,
|
||||
|
||||
@ -25,6 +25,7 @@ use reth_node_ethereum::EthEvmConfig;
|
||||
use reth_primitives::{BlockHashOrNumber, ChainSpec, PruneModes, B256};
|
||||
use reth_provider::{
|
||||
BlockExecutionWriter, BlockNumReader, ChainSpecProvider, HeaderSyncMode, ProviderFactory,
|
||||
StaticFileProviderFactory,
|
||||
};
|
||||
use reth_prune::PrunerBuilder;
|
||||
use reth_stages::{
|
||||
|
||||
Reference in New Issue
Block a user