solana_runtime::snapshot_utils

Function rebuild_storages_from_snapshot_dir

Source
pub fn rebuild_storages_from_snapshot_dir(
    snapshot_info: &BankSnapshotInfo,
    account_paths: &[PathBuf],
    next_append_vec_id: Arc<AtomicAccountsFileId>,
    storage_access: StorageAccess,
) -> Result<AccountStorageMap>
Expand description

Performs the common tasks when deserializing a snapshot

Handles reading the snapshot file and version file, then returning those fields plus the rebuilt storages.