solana_runtime::snapshot_utils

Function verify_and_unarchive_snapshots

source
pub fn verify_and_unarchive_snapshots(
    bank_snapshots_dir: impl AsRef<Path>,
    full_snapshot_archive_info: &FullSnapshotArchiveInfo,
    incremental_snapshot_archive_info: Option<&IncrementalSnapshotArchiveInfo>,
    account_paths: &[PathBuf],
) -> Result<(UnarchivedSnapshot, Option<UnarchivedSnapshot>, AtomicAppendVecId)>
Expand description

Unarchives the given full and incremental snapshot archives, as long as they are compatible.