Function solana_download_utils::download_snapshot_archive
source · [−]pub fn download_snapshot_archive<'a, 'b>(
rpc_addr: &SocketAddr,
snapshot_archives_dir: &Path,
desired_snapshot_hash: (Slot, Hash),
snapshot_type: SnapshotType,
maximum_full_snapshot_archives_to_retain: usize,
maximum_incremental_snapshot_archives_to_retain: usize,
use_progress_bar: bool,
progress_notify_callback: &'a mut Option<Box<dyn FnMut(&DownloadProgressRecord) -> bool + 'b>>
) -> 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.