Skip to main content

turn_transition

Function turn_transition 

Source
pub fn turn_transition(
    prev: Option<bool>,
    active: bool,
    stopped_recently: bool,
) -> TurnTransition
Expand description

Pure: prev = last known turn_active for the block (None = never seen, e.g. right after srv start — a replayed/first status is not a transition).