chore: import from static files crate directly (#9111)

This commit is contained in:
Matthias Seitz
2024-06-26 11:52:56 +02:00
committed by GitHub
parent b36bd58dbe
commit ce5a191af6
5 changed files with 7 additions and 5 deletions

View File

@ -5,8 +5,8 @@ use reth_db_api::{
table::Table, table::Table,
transaction::{DbTx, DbTxMut}, transaction::{DbTx, DbTxMut},
}; };
use reth_primitives::{static_file::find_fixed_range, StaticFileSegment};
use reth_provider::{ProviderFactory, StaticFileProviderFactory}; use reth_provider::{ProviderFactory, StaticFileProviderFactory};
use reth_static_file_types::{find_fixed_range, StaticFileSegment};
/// The arguments for the `reth db clear` command /// The arguments for the `reth db clear` command
#[derive(Parser, Debug)] #[derive(Parser, Debug)]

View File

@ -8,8 +8,9 @@ use reth_db_api::{
database::Database, database::Database,
table::{Decompress, DupSort, Table}, table::{Decompress, DupSort, Table},
}; };
use reth_primitives::{BlockHash, Header, StaticFileSegment}; use reth_primitives::{BlockHash, Header};
use reth_provider::StaticFileProviderFactory; use reth_provider::StaticFileProviderFactory;
use reth_static_file_types::StaticFileSegment;
use tracing::error; use tracing::error;
/// The arguments for the `reth db get` command /// The arguments for the `reth db get` command

View File

@ -8,8 +8,8 @@ use reth_db::{mdbx, static_file::iter_static_files, DatabaseEnv, TableViewer, Ta
use reth_db_api::database::Database; use reth_db_api::database::Database;
use reth_fs_util as fs; use reth_fs_util as fs;
use reth_node_core::dirs::{ChainPath, DataDirPath}; use reth_node_core::dirs::{ChainPath, DataDirPath};
use reth_primitives::static_file::{find_fixed_range, SegmentRangeInclusive};
use reth_provider::providers::StaticFileProvider; use reth_provider::providers::StaticFileProvider;
use reth_static_file_types::{find_fixed_range, SegmentRangeInclusive};
use std::{sync::Arc, time::Duration}; use std::{sync::Arc, time::Duration};
#[derive(Parser, Debug)] #[derive(Parser, Debug)]

View File

@ -13,12 +13,13 @@ use reth_downloaders::{
use reth_execution_types::ExecutionOutcome; use reth_execution_types::ExecutionOutcome;
use reth_node_core::version::SHORT_VERSION; use reth_node_core::version::SHORT_VERSION;
use reth_optimism_primitives::bedrock_import::is_dup_tx; use reth_optimism_primitives::bedrock_import::is_dup_tx;
use reth_primitives::{Receipts, StaticFileSegment}; use reth_primitives::Receipts;
use reth_provider::{ use reth_provider::{
OriginalValuesKnown, ProviderFactory, StageCheckpointReader, StateWriter, OriginalValuesKnown, ProviderFactory, StageCheckpointReader, StateWriter,
StaticFileProviderFactory, StaticFileWriter, StatsReader, StaticFileProviderFactory, StaticFileWriter, StatsReader,
}; };
use reth_stages::StageId; use reth_stages::StageId;
use reth_static_file_types::StaticFileSegment;
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
use tracing::{debug, error, info, trace}; use tracing::{debug, error, info, trace};

View File

@ -10,9 +10,9 @@ use itertools::Itertools;
use reth_db::{static_file::iter_static_files, tables, DatabaseEnv}; use reth_db::{static_file::iter_static_files, tables, DatabaseEnv};
use reth_db_api::transaction::DbTxMut; use reth_db_api::transaction::DbTxMut;
use reth_db_common::init::{insert_genesis_header, insert_genesis_history, insert_genesis_state}; use reth_db_common::init::{insert_genesis_header, insert_genesis_history, insert_genesis_state};
use reth_primitives::{static_file::find_fixed_range, StaticFileSegment};
use reth_provider::{providers::StaticFileWriter, StaticFileProviderFactory}; use reth_provider::{providers::StaticFileWriter, StaticFileProviderFactory};
use reth_stages::StageId; use reth_stages::StageId;
use reth_static_file_types::{find_fixed_range, StaticFileSegment};
/// `reth drop-stage` command /// `reth drop-stage` command
#[derive(Debug, Parser)] #[derive(Debug, Parser)]