Skip to main content

barrier_cut_expired

Function barrier_cut_expired 

Source
pub fn barrier_cut_expired(
    published_epoch: i64,
    retained_cuts: i32,
    held_epoch: i64,
) -> bool
Expand description

Decide whether one held barrier cut falls outside the retained epoch window.

A nonpositive retention count and an unrepresentable cutoff both fail closed by expiring nothing.