reth_trie::test_utils

Function state_root

Source
pub fn state_root<I, S>(accounts: I) -> B256
where I: IntoIterator<Item = (Address, (Account, S))>, S: IntoIterator<Item = (B256, U256)>,
Available on crate feature test-utils only.
Expand description

Compute the state root of a given set of accounts using [triehash::sec_trie_root].