Skip to main content

fork_identity

Function fork_identity 

Source
fn fork_identity<Pdu>(
    (sstatehash, prev_event): &(ShortStateHash, Pdu),
) -> (ShortStateHash, Option<&EventId>)
where Pdu: Event,
Expand description

The fork a prev event contributes to resolution.

A prev’s snapshot is the state before it, so a state prev also carries its own event; siblings sharing a snapshot share a fork only when neither sets state.