Skip to main content

revalidate_replay

Function revalidate_replay 

Source
pub fn revalidate_replay<F: RepositoryFacts>(
    context: &RevalidationContext<'_>,
    workspace: &CommitWorkspace,
    request: &StageRequest,
    checks: &mut ShippedChecks<PrivateIndexFacts<F>>,
    replay: u64,
    merged_tree: &str,
    onto: &str,
    approved_tree: &str,
) -> Result<Revalidation, TransactionStop>
Expand description

What: Revalidate a replayed tree. Why: The policies converge over the replayed index with the replay parent as their baseline, and pre-commit sees the tree when the policies changed what it last approved.

In TS you’d write (pseudocode):

await revalidateReplay({ context, replay, mergedTree, onto, approvedTree });