dep(trie): remove reth-trie dep from reth-trie-sparse (#12872)

This commit is contained in:
Roman Krasiuk
2024-11-26 13:53:52 +01:00
committed by GitHub
parent 2dc92880ba
commit 2b4fa3bbf1
4 changed files with 5 additions and 9 deletions

View File

@@ -16,7 +16,6 @@ workspace = true
# reth
reth-tracing.workspace = true
reth-trie-common.workspace = true
reth-trie.workspace = true
# alloy
alloy-primitives.workspace = true

View File

@@ -1,7 +1,7 @@
//! Errors for sparse trie.
use alloy_primitives::{Bytes, B256};
use reth_trie::Nibbles;
use reth_trie_common::Nibbles;
use thiserror::Error;
use crate::SparseNode;

View File

@@ -6,7 +6,7 @@ use alloy_primitives::{
Bytes, B256,
};
use alloy_rlp::Decodable;
use reth_trie::{
use reth_trie_common::{
updates::{StorageTrieUpdates, TrieUpdates},
Nibbles, TrieNode,
};

View File

@@ -6,13 +6,10 @@ use alloy_primitives::{
};
use alloy_rlp::Decodable;
use reth_tracing::tracing::debug;
use reth_trie::{
prefix_set::{PrefixSet, PrefixSetMut},
BranchNodeCompact, RlpNode,
};
use reth_trie_common::{
BranchNodeRef, ExtensionNodeRef, LeafNodeRef, Nibbles, TrieMask, TrieNode, CHILD_INDEX_RANGE,
EMPTY_ROOT_HASH,
prefix_set::{PrefixSet, PrefixSetMut},
BranchNodeCompact, BranchNodeRef, ExtensionNodeRef, LeafNodeRef, Nibbles, RlpNode, TrieMask,
TrieNode, CHILD_INDEX_RANGE, EMPTY_ROOT_HASH,
};
use smallvec::SmallVec;
use std::{borrow::Cow, fmt};