mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
perf: trie micro optimizations (#13282)
This commit is contained in:
@ -12,7 +12,7 @@ use alloy_eips::{
|
||||
};
|
||||
use alloy_primitives::{
|
||||
keccak256,
|
||||
map::{HashMap, HashSet},
|
||||
map::{B256HashMap, HashMap},
|
||||
Address, BlockHash, BlockNumber, Bytes, StorageKey, StorageValue, TxHash, TxNumber, B256, U256,
|
||||
};
|
||||
use parking_lot::Mutex;
|
||||
@ -35,7 +35,7 @@ use reth_storage_api::{
|
||||
use reth_storage_errors::provider::{ConsistentViewError, ProviderError, ProviderResult};
|
||||
use reth_trie::{
|
||||
updates::TrieUpdates, AccountProof, HashedPostState, HashedStorage, MultiProof,
|
||||
StorageMultiProof, StorageProof, TrieInput,
|
||||
MultiProofTargets, StorageMultiProof, StorageProof, TrieInput,
|
||||
};
|
||||
use reth_trie_db::MerklePatriciaTrie;
|
||||
use revm::primitives::{BlockEnv, CfgEnvWithHandlerCfg};
|
||||
@ -673,7 +673,7 @@ impl StateProofProvider for MockEthProvider {
|
||||
fn multiproof(
|
||||
&self,
|
||||
_input: TrieInput,
|
||||
_targets: HashMap<B256, HashSet<B256>>,
|
||||
_targets: MultiProofTargets,
|
||||
) -> ProviderResult<MultiProof> {
|
||||
Ok(MultiProof::default())
|
||||
}
|
||||
@ -682,7 +682,7 @@ impl StateProofProvider for MockEthProvider {
|
||||
&self,
|
||||
_input: TrieInput,
|
||||
_target: HashedPostState,
|
||||
) -> ProviderResult<HashMap<B256, Bytes>> {
|
||||
) -> ProviderResult<B256HashMap<Bytes>> {
|
||||
Ok(HashMap::default())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user