mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: import from static files crate directly (#9111)
This commit is contained in:
@ -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)]
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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)]
|
||||||
|
|||||||
@ -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};
|
||||||
|
|
||||||
|
|||||||
@ -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)]
|
||||||
|
|||||||
Reference in New Issue
Block a user