Skip to main content

replay

Function replay 

Source
pub fn replay(
    cold: &Cold,
    tree: &mut StateTree,
    base: &[u8],
    before: Progress,
    to: u32,
    opts: &Options,
    report: impl FnMut(&Progress),
) -> Result<Progress, (Progress, String)>
Expand description

Replays from + 1..=to over tree, which holds the state at from with header base; before is what earlier runs did, for the counters. The error names the first ledger that doesn’t hold; Progress in the Err is what did.