mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
perf(root): untangle the state root task (#13898)
This commit is contained in:
@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user