Function solana_runtime::snapshot_utils::bank_to_snapshot_archive [−][src]
pub fn bank_to_snapshot_archive<P: AsRef<Path>, Q: AsRef<Path>>(
snapshot_path: P,
bank: &Bank,
snapshot_version: Option<SnapshotVersion>,
snapshot_package_output_path: Q,
archive_format: ArchiveFormat,
thread_pool: Option<&ThreadPool>
) -> Result<PathBuf>
Convenience function to create a snapshot archive out of any Bank, regardless of state. The Bank will be frozen during the process.