pub fn storage_trie_wiped_changeset_iter(
curr_values_of_changed: impl Iterator<Item = Result<(Nibbles, Option<BranchNodeCompact>), DatabaseError>>,
all_nodes: impl Iterator<Item = Result<(Nibbles, BranchNodeCompact), DatabaseError>>,
) -> Result<impl Iterator<Item = Result<(Nibbles, Option<BranchNodeCompact>), DatabaseError>>, DatabaseError>Expand description
Returns an iterator which produces the values to be inserted into the StoragesTrieChangeSets
table for an account whose storage was wiped during a block. It is expected that this is called
prior to inserting the block’s trie updates.
§Arguments
curr_values_of_changedis an iterator over the current values of all trie nodes modified by the block, ordered by path.all_nodesis an iterator over all existing trie nodes for the account, ordered by path.
§Returns
An iterator of trie node paths and a Some(node) (indicating the node was wiped) or a None
(indicating the node was modified in the block but didn’t previously exist. The iterator’s
results will be ordered by path.