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<AtomicAppendVecId>,
) -> 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.