perf(root): untangle the state root task (#13898)

This commit is contained in:
Roman Krasiuk
2025-01-21 23:46:34 +01:00
committed by GitHub
parent 6c3b1b8bcd
commit d2b454236f
7 changed files with 343 additions and 555 deletions

View File

@ -18,7 +18,7 @@ pub trait StateRootProvider: Send + Sync {
/// computation.
fn state_root(&self, hashed_state: HashedPostState) -> ProviderResult<B256>;
/// Returns the state root of the `HashedPostState` on top of the current state but re-uses the
/// Returns the state root of the `HashedPostState` on top of the current state but reuses the
/// intermediate nodes to speed up the computation. It's up to the caller to construct the
/// prefix sets and inform the provider of the trie paths that have changes.
fn state_root_from_nodes(&self, input: TrieInput) -> ProviderResult<B256>;