pub fn compute_block_trie_changesets<Provider>(
provider: &Provider,
block_number: u64,
) -> Result<TrieUpdatesSorted, ProviderError>where
Provider: DBProvider + ChangeSetReader + StorageChangeSetReader + BlockNumReader + StorageSettingsCache,Available on crate features
trie-db and trie only.Expand description
Computes trie changesets for a block.
For block N, this reconstructs the trie as it existed after N, then calculates the trie
updates needed to restore the state before N.
ยงErrors
Returns an error if the block exceeds the database tip, database access fails, or state root computation fails.