Module state

Source
Expand description

Support for generating the state root for memdb storage

Functions§

apply_cached_db_state_override
Applies the given state overrides to the given CacheDB
apply_state_override
Applies the given state overrides to the state, returning a new CacheDB state
build_root
state_root
Builds state root from the given accounts
storage_root
Builds storage root from the given storage
trie_account_rlp
Returns the RLP for this account.
trie_accounts
Builds iterator over stored key-value pairs ready for account trie root calculation.
trie_storage
Builds iterator over stored key-value pairs ready for storage trie root calculation.