solana_runtime::snapshot_utils

Function get_highest_bank_snapshot_pre

source
pub fn get_highest_bank_snapshot_pre(
    bank_snapshots_dir: impl AsRef<Path>,
) -> Option<BankSnapshotInfo>
Expand description

Get the bank snapshot with the highest slot in a directory

This function gets the highest bank snapshot of type BankSnapshotType::Pre