Skip to main content

diff_timelines

Function diff_timelines 

Source
pub fn diff_timelines(
    source: &[CanonEventSnapshot],
    target: &[CanonEventSnapshot],
    from_tick: u64,
    to_tick: u64,
) -> TimelineDiff
Expand description

Compare two event streams and produce a structural diff.

Both streams are filtered to the [from_tick, to_tick] range. Events are matched by (tick, seq) pairs; mismatches are recorded when digests differ. The divergence tick is the first tick containing a mismatch.