mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(trie): rename reth-trie-parallel modules (#12444)
This commit is contained in:
@ -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},
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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")]
|
||||
|
||||
@ -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;
|
||||
Reference in New Issue
Block a user