mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
trie: replace reth_primitives with alloy_primitives (#10931)
Signed-off-by: Abhishekkochar <abhishekkochar2@gmail.com>
This commit is contained in:
@ -23,6 +23,7 @@ reth-provider.workspace = true
|
||||
|
||||
# alloy
|
||||
alloy-rlp.workspace = true
|
||||
alloy-primitives.workspace = true
|
||||
|
||||
# tracing
|
||||
tracing.workspace = true
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
#![allow(missing_docs, unreachable_pub)]
|
||||
use alloy_primitives::{B256, U256};
|
||||
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
|
||||
use proptest::{prelude::*, strategy::ValueTree, test_runner::TestRunner};
|
||||
use proptest_arbitrary_interop::arb;
|
||||
use rayon::ThreadPoolBuilder;
|
||||
use reth_primitives::{Account, B256, U256};
|
||||
use reth_primitives::Account;
|
||||
use reth_provider::{
|
||||
providers::ConsistentDbView, test_utils::create_test_provider_factory, StateChangeWriter,
|
||||
TrieWriter,
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
#[cfg(feature = "metrics")]
|
||||
use crate::metrics::ParallelStateRootMetrics;
|
||||
use crate::{stats::ParallelTrieTracker, storage_root_targets::StorageRootTargets};
|
||||
use alloy_primitives::B256;
|
||||
use alloy_rlp::{BufMut, Encodable};
|
||||
use itertools::Itertools;
|
||||
use reth_execution_errors::StorageRootError;
|
||||
use reth_primitives::B256;
|
||||
use reth_provider::{
|
||||
providers::ConsistentDbView, BlockReader, DBProvider, DatabaseProviderFactory, ProviderError,
|
||||
};
|
||||
@ -240,9 +240,10 @@ pub enum AsyncStateRootError {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use alloy_primitives::{keccak256, Address, U256};
|
||||
use rand::Rng;
|
||||
use rayon::ThreadPoolBuilder;
|
||||
use reth_primitives::{keccak256, Account, Address, StorageEntry, U256};
|
||||
use reth_primitives::{Account, StorageEntry};
|
||||
use reth_provider::{test_utils::create_test_provider_factory, HashingWriter};
|
||||
use reth_trie::{test_utils, HashedPostState, HashedStorage};
|
||||
|
||||
|
||||
@ -226,8 +226,9 @@ impl From<ParallelStateRootError> for ProviderError {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use alloy_primitives::{keccak256, Address, U256};
|
||||
use rand::Rng;
|
||||
use reth_primitives::{keccak256, Account, Address, StorageEntry, U256};
|
||||
use reth_primitives::{Account, StorageEntry};
|
||||
use reth_provider::{test_utils::create_test_provider_factory, HashingWriter};
|
||||
use reth_trie::{test_utils, HashedPostState, HashedStorage};
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use alloy_primitives::B256;
|
||||
use derive_more::{Deref, DerefMut};
|
||||
use reth_primitives::B256;
|
||||
use reth_trie::prefix_set::PrefixSet;
|
||||
use std::collections::HashMap;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user