Add LastFullSnapshotSlot to SnapshotConfig (#19341)

This commit is contained in:
Brooks Prumo
2021-08-20 12:06:53 -05:00
committed by GitHub
parent 3e5ba8dcaa
commit 4d361af976
10 changed files with 27 additions and 8 deletions

View File

@@ -31,7 +31,7 @@ use solana_runtime::{
bank_forks::BankForks,
hardened_unpack::{open_genesis_config, MAX_GENESIS_ARCHIVE_UNPACKED_SIZE},
snapshot_archive_info::SnapshotArchiveInfoGetter,
snapshot_config::SnapshotConfig,
snapshot_config::{LastFullSnapshotSlot, SnapshotConfig},
snapshot_utils::{
self, ArchiveFormat, SnapshotVersion, DEFAULT_MAX_FULL_SNAPSHOT_ARCHIVES_TO_RETAIN,
},
@@ -719,6 +719,7 @@ fn load_bank_forks(
archive_format: ArchiveFormat::TarBzip2,
snapshot_version: SnapshotVersion::default(),
maximum_snapshots_to_retain: DEFAULT_MAX_FULL_SNAPSHOT_ARCHIVES_TO_RETAIN,
last_full_snapshot_slot: LastFullSnapshotSlot::default(),
})
};
let account_paths = if let Some(account_paths) = arg_matches.value_of("account_paths") {