mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Move reth-primitives::fs module to fs-utils crate (#8286)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -16,6 +16,7 @@ workspace = true
|
||||
# reth
|
||||
reth-config.workspace = true
|
||||
reth-primitives = { workspace = true, features = ["arbitrary", "clap"] }
|
||||
reth-fs-util.workspace = true
|
||||
reth-db = { workspace = true, features = ["mdbx"] }
|
||||
reth-exex.workspace = true
|
||||
reth-provider = { workspace = true }
|
||||
|
||||
@ -15,6 +15,7 @@ use reth_db::{
|
||||
Tables, TransactionBlocks, TransactionHashNumbers, TransactionSenders, Transactions,
|
||||
VersionHistory,
|
||||
};
|
||||
use reth_fs_util as fs;
|
||||
use reth_node_core::dirs::{ChainPath, DataDirPath};
|
||||
use reth_primitives::static_file::{find_fixed_range, SegmentRangeInclusive};
|
||||
use reth_provider::providers::StaticFileProvider;
|
||||
@ -203,16 +204,16 @@ impl Command {
|
||||
let columns = jar_provider.columns();
|
||||
let rows = jar_provider.rows();
|
||||
|
||||
let data_size = reth_primitives::fs::metadata(jar_provider.data_path())
|
||||
let data_size = fs::metadata(jar_provider.data_path())
|
||||
.map(|metadata| metadata.len())
|
||||
.unwrap_or_default();
|
||||
let index_size = reth_primitives::fs::metadata(jar_provider.index_path())
|
||||
let index_size = fs::metadata(jar_provider.index_path())
|
||||
.map(|metadata| metadata.len())
|
||||
.unwrap_or_default();
|
||||
let offsets_size = reth_primitives::fs::metadata(jar_provider.offsets_path())
|
||||
let offsets_size = fs::metadata(jar_provider.offsets_path())
|
||||
.map(|metadata| metadata.len())
|
||||
.unwrap_or_default();
|
||||
let config_size = reth_primitives::fs::metadata(jar_provider.config_path())
|
||||
let config_size = fs::metadata(jar_provider.config_path())
|
||||
.map(|metadata| metadata.len())
|
||||
.unwrap_or_default();
|
||||
|
||||
|
||||
@ -22,12 +22,12 @@ use reth_cli_runner::CliContext;
|
||||
use reth_consensus::Consensus;
|
||||
use reth_db::{init_db, DatabaseEnv};
|
||||
use reth_evm::execute::{BlockExecutionOutput, BlockExecutorProvider, Executor};
|
||||
use reth_fs_util as fs;
|
||||
use reth_interfaces::RethResult;
|
||||
use reth_node_api::PayloadBuilderAttributes;
|
||||
use reth_payload_builder::database::CachedReads;
|
||||
use reth_primitives::{
|
||||
constants::eip4844::{LoadKzgSettingsError, MAINNET_KZG_TRUSTED_SETUP},
|
||||
fs,
|
||||
revm_primitives::KzgSettings,
|
||||
stage::StageId,
|
||||
Address, BlobTransaction, BlobTransactionSidecar, Bytes, ChainSpec, PooledTransactionsElement,
|
||||
|
||||
@ -22,12 +22,13 @@ use reth_downloaders::{
|
||||
headers::reverse_headers::ReverseHeadersDownloaderBuilder,
|
||||
};
|
||||
use reth_exex::ExExManagerHandle;
|
||||
use reth_fs_util as fs;
|
||||
use reth_interfaces::p2p::{bodies::client::BodiesClient, headers::client::HeadersClient};
|
||||
use reth_network::{NetworkEvents, NetworkHandle};
|
||||
use reth_network_api::NetworkInfo;
|
||||
use reth_node_core::init::init_genesis;
|
||||
use reth_primitives::{
|
||||
fs, stage::StageId, BlockHashOrNumber, BlockNumber, ChainSpec, PruneModes, B256,
|
||||
stage::StageId, BlockHashOrNumber, BlockNumber, ChainSpec, PruneModes, B256,
|
||||
};
|
||||
use reth_provider::{
|
||||
BlockExecutionWriter, HeaderSyncMode, ProviderFactory, StageCheckpointReader,
|
||||
|
||||
@ -16,10 +16,11 @@ use reth_cli_runner::CliContext;
|
||||
use reth_config::Config;
|
||||
use reth_db::{init_db, DatabaseEnv};
|
||||
use reth_evm::execute::{BlockExecutionOutput, BlockExecutorProvider, Executor};
|
||||
use reth_fs_util as fs;
|
||||
use reth_interfaces::executor::BlockValidationError;
|
||||
use reth_network::NetworkHandle;
|
||||
use reth_network_api::NetworkInfo;
|
||||
use reth_primitives::{fs, stage::StageId, BlockHashOrNumber, ChainSpec, Receipts};
|
||||
use reth_primitives::{stage::StageId, BlockHashOrNumber, ChainSpec, Receipts};
|
||||
use reth_provider::{
|
||||
AccountExtReader, BundleStateWithReceipts, HashingWriter, HeaderProvider,
|
||||
LatestStateProviderRef, OriginalValuesKnown, ProviderFactory, StageCheckpointReader,
|
||||
|
||||
@ -18,10 +18,11 @@ use reth_config::Config;
|
||||
use reth_consensus::Consensus;
|
||||
use reth_db::{cursor::DbCursorRO, init_db, tables, transaction::DbTx, DatabaseEnv};
|
||||
use reth_evm::execute::{BatchBlockExecutionOutput, BatchExecutor, BlockExecutorProvider};
|
||||
use reth_fs_util as fs;
|
||||
use reth_interfaces::p2p::full_block::FullBlockClient;
|
||||
use reth_network::NetworkHandle;
|
||||
use reth_network_api::NetworkInfo;
|
||||
use reth_primitives::{fs, stage::StageCheckpoint, BlockHashOrNumber, ChainSpec, PruneModes};
|
||||
use reth_primitives::{stage::StageCheckpoint, BlockHashOrNumber, ChainSpec, PruneModes};
|
||||
use reth_provider::{
|
||||
BlockNumReader, BlockWriter, BundleStateWithReceipts, HeaderProvider, LatestStateProviderRef,
|
||||
OriginalValuesKnown, ProviderError, ProviderFactory, StateWriter,
|
||||
|
||||
@ -18,11 +18,12 @@ use reth_cli_runner::CliContext;
|
||||
use reth_config::Config;
|
||||
use reth_consensus::Consensus;
|
||||
use reth_db::{init_db, DatabaseEnv};
|
||||
use reth_fs_util as fs;
|
||||
use reth_network::NetworkHandle;
|
||||
use reth_network_api::NetworkInfo;
|
||||
use reth_node_core::engine::engine_store::{EngineMessageStore, StoredEngineApiMessage};
|
||||
use reth_payload_builder::{PayloadBuilderHandle, PayloadBuilderService};
|
||||
use reth_primitives::{fs, ChainSpec, PruneModes};
|
||||
use reth_primitives::{ChainSpec, PruneModes};
|
||||
use reth_provider::{
|
||||
providers::BlockchainProvider, CanonStateSubscriptions, ProviderFactory,
|
||||
StaticFileProviderFactory,
|
||||
|
||||
@ -11,9 +11,10 @@ use crate::{
|
||||
use clap::Parser;
|
||||
use itertools::Itertools;
|
||||
use reth_db::{open_db, static_file::iter_static_files, tables, transaction::DbTxMut, DatabaseEnv};
|
||||
use reth_fs_util as fs;
|
||||
use reth_node_core::init::{insert_genesis_header, insert_genesis_history, insert_genesis_state};
|
||||
use reth_primitives::{
|
||||
fs, stage::StageId, static_file::find_fixed_range, ChainSpec, StaticFileSegment,
|
||||
stage::StageId, static_file::find_fixed_range, ChainSpec, StaticFileSegment,
|
||||
};
|
||||
use reth_provider::{providers::StaticFileWriter, ProviderFactory, StaticFileProviderFactory};
|
||||
use std::sync::Arc;
|
||||
|
||||
@ -11,7 +11,7 @@ use reth_db::{
|
||||
table::{DupSort, Table, TableRow},
|
||||
tables,
|
||||
};
|
||||
use reth_primitives::fs;
|
||||
use reth_fs_util as fs;
|
||||
use tracing::error;
|
||||
|
||||
const VECTORS_FOLDER: &str = "testdata/micro/db";
|
||||
|
||||
@ -9,7 +9,8 @@ use reth_db::{
|
||||
transaction::{DbTx, DbTxMut},
|
||||
DatabaseError, RawTable, TableRawRow,
|
||||
};
|
||||
use reth_primitives::{fs, ChainSpec};
|
||||
use reth_fs_util as fs;
|
||||
use reth_primitives::ChainSpec;
|
||||
use reth_provider::ProviderFactory;
|
||||
use std::{path::Path, rc::Rc, sync::Arc};
|
||||
use tracing::info;
|
||||
|
||||
Reference in New Issue
Block a user