chore(trie): rename reth-trie-parallel modules (#12444)

This commit is contained in:
Federico Gimenez
2024-11-11 12:23:07 +01:00
committed by GitHub
parent 365f6a1f69
commit de6813093d
7 changed files with 7 additions and 9 deletions

View File

@ -23,7 +23,7 @@ use reth_provider::{
};
use reth_revm::database::StateProviderDatabase;
use reth_trie::{updates::TrieUpdates, HashedPostState, TrieInput};
use reth_trie_parallel::parallel_root::ParallelStateRoot;
use reth_trie_parallel::root::ParallelStateRoot;
use std::{
collections::BTreeMap,
ops::{Deref, DerefMut},

View File

@ -43,7 +43,7 @@ use reth_provider::{
use reth_revm::database::StateProviderDatabase;
use reth_stages_api::ControlFlow;
use reth_trie::{updates::TrieUpdates, HashedPostState, TrieInput};
use reth_trie_parallel::parallel_root::{ParallelStateRoot, ParallelStateRootError};
use reth_trie_parallel::root::{ParallelStateRoot, ParallelStateRootError};
use revm_primitives::ResultAndState;
use std::{
cmp::Ordering,

View File

@ -4,7 +4,7 @@ use futures::Stream;
use pin_project::pin_project;
use reth_provider::providers::ConsistentDbView;
use reth_trie::{updates::TrieUpdates, TrieInput};
use reth_trie_parallel::parallel_root::ParallelStateRootError;
use reth_trie_parallel::root::ParallelStateRootError;
use revm_primitives::{EvmState, B256};
use std::{
future::Future,

View File

@ -13,7 +13,7 @@ use reth_trie::{
TrieInput,
};
use reth_trie_db::{DatabaseHashedCursorFactory, DatabaseStateRoot};
use reth_trie_parallel::parallel_root::ParallelStateRoot;
use reth_trie_parallel::root::ParallelStateRoot;
use std::collections::HashMap;
pub fn calculate_state_root(c: &mut Criterion) {

View File

@ -14,10 +14,10 @@ pub use storage_root_targets::StorageRootTargets;
pub mod stats;
/// Implementation of parallel state root computation.
pub mod parallel_root;
pub mod root;
/// Implementation of parallel proof computation.
pub mod parallel_proof;
pub mod proof;
/// Parallel state root metrics.
#[cfg(feature = "metrics")]

View File

@ -1,6 +1,4 @@
use crate::{
parallel_root::ParallelStateRootError, stats::ParallelTrieTracker, StorageRootTargets,
};
use crate::{root::ParallelStateRootError, stats::ParallelTrieTracker, StorageRootTargets};
use alloy_primitives::{map::HashSet, B256};
use alloy_rlp::{BufMut, Encodable};
use itertools::Itertools;