reth_trie_common::root

Function state_root_unsorted

Source
pub fn state_root_unsorted<A: Into<TrieAccount>>(
    state: impl IntoIterator<Item = (B256, A)>,
) -> B256
Expand description

Sorts the hashed account keys and calculates the root hash of the state represented as MPT. See state_root for more info.