Skip to main content

state_trie_witness

Function state_trie_witness 

Source
pub fn state_trie_witness(
    accounts: &AddressMap<DbAccount>,
) -> (B256, Vec<Bytes>)
Expand description

Builds the state trie for the given accounts and returns its root together with the RLP encoding of every node of the account trie and all storage tries.

The node set is a witness for any execution against this state: it is a strict superset of the nodes touched by any particular block.