Skip to main content

union_paths

Function union_paths 

Source
pub fn union_paths(
    committed: &[Vec<u8>],
    revalidated: Vec<Vec<u8>>,
) -> Vec<Vec<u8>>
Expand description

What: The paths of a replay: those already committed, then the ones revalidation added that are new. Why: A path both lists name is one path of the commit.

In TS you’d write (pseudocode):

[...new Set([...committedPaths, ...revalidatedPaths])]