Move snapshot archive generation out of the SnapshotPackagerService

This commit is contained in:
Michael Vines
2020-01-23 11:20:37 -07:00
parent 6f5e0cd161
commit ce231602dc
5 changed files with 143 additions and 170 deletions

View File

@ -140,7 +140,8 @@ mod tests {
&last_bank.src.roots(),
)
.unwrap();
SnapshotPackagerService::package_snapshots(&snapshot_package).unwrap();
snapshot_utils::archive_snapshot_package(&snapshot_package).unwrap();
restore_from_snapshot(bank_forks, vec![accounts_dir.path().to_path_buf()]);
}
@ -322,7 +323,7 @@ mod tests {
)
.unwrap();
snapshot_utils::verify_snapshot_tar(
snapshot_utils::verify_snapshot_archive(
saved_tar,
saved_snapshots_dir.path(),
saved_accounts_dir