mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
perf(trie): pass owned hashed state to trie methods (#9837)
This commit is contained in:
@ -68,13 +68,13 @@ impl BlockHashReader for StateProviderTest {
|
||||
}
|
||||
|
||||
impl StateRootProvider for StateProviderTest {
|
||||
fn hashed_state_root(&self, _hashed_state: &HashedPostState) -> ProviderResult<B256> {
|
||||
fn hashed_state_root(&self, _hashed_state: HashedPostState) -> ProviderResult<B256> {
|
||||
unimplemented!("state root computation is not supported")
|
||||
}
|
||||
|
||||
fn hashed_state_root_with_updates(
|
||||
&self,
|
||||
_hashed_state: &HashedPostState,
|
||||
_hashed_state: HashedPostState,
|
||||
) -> ProviderResult<(B256, TrieUpdates)> {
|
||||
unimplemented!("state root computation is not supported")
|
||||
}
|
||||
@ -83,7 +83,7 @@ impl StateRootProvider for StateProviderTest {
|
||||
impl StateProofProvider for StateProviderTest {
|
||||
fn hashed_proof(
|
||||
&self,
|
||||
_hashed_state: &HashedPostState,
|
||||
_hashed_state: HashedPostState,
|
||||
_address: Address,
|
||||
_slots: &[B256],
|
||||
) -> ProviderResult<AccountProof> {
|
||||
|
||||
Reference in New Issue
Block a user