solana_runtime::snapshot_package

Function cmp_snapshot_kinds_by_priority

Source
pub fn cmp_snapshot_kinds_by_priority(
    a: &SnapshotKind,
    b: &SnapshotKind,
) -> Ordering
Expand description

Compare snapshot kinds by priority

Full snapshots are higher in priority than incremental snapshots. If two IncrementalSnapshots are compared, their base slots are the tiebreaker.