perf(trie): pass owned hashed state to trie methods (#9837)

This commit is contained in:
Roman Krasiuk
2024-07-26 07:55:02 -07:00
committed by GitHub
parent 07f1978f77
commit 6d036cd95b
11 changed files with 54 additions and 60 deletions

View File

@ -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> {