Function solana_download_utils::download_snapshot_archive
source · pub fn download_snapshot_archive(
rpc_addr: &SocketAddr,
full_snapshot_archives_dir: &Path,
incremental_snapshot_archives_dir: &Path,
desired_snapshot_hash: (Slot, SnapshotHash),
snapshot_type: SnapshotType,
maximum_full_snapshot_archives_to_retain: usize,
maximum_incremental_snapshot_archives_to_retain: usize,
use_progress_bar: bool,
progress_notify_callback: &mut Option<Box<dyn FnMut(&DownloadProgressRecord) -> bool + '_>>
) -> Result<(), String>
Expand description
Download a snapshot archive from rpc_addr
. Use snapshot_type
to specify downloading either
a full snapshot or an incremental snapshot.