Revert "Add LastFullSnapshotSlot to SnapshotConfig (#19341)" (#19529)

This reverts commit 4d361af976.
This commit is contained in:
Brooks Prumo
2021-08-31 22:03:19 -05:00
committed by GitHub
parent 2df96cd81e
commit 1d5a8ebc6a
10 changed files with 9 additions and 30 deletions

View File

@ -23,7 +23,7 @@ use {
bank_forks::BankForks,
commitment::BlockCommitmentCache,
hardened_unpack::MAX_GENESIS_ARCHIVE_UNPACKED_SIZE,
snapshot_config::{LastFullSnapshotSlot, SnapshotConfig},
snapshot_config::SnapshotConfig,
snapshot_utils::{self, ArchiveFormat},
},
solana_sdk::{clock::Slot, exit::Exit, genesis_config::GenesisConfig, hash::Hash},
@ -265,7 +265,6 @@ impl ReplicaNode {
snapshot_version: snapshot_utils::SnapshotVersion::default(),
maximum_snapshots_to_retain:
snapshot_utils::DEFAULT_MAX_FULL_SNAPSHOT_ARCHIVES_TO_RETAIN,
last_full_snapshot_slot: LastFullSnapshotSlot::default(),
};
let bank_info =

View File

@ -17,7 +17,7 @@ use {
solana_runtime::{
accounts_index::AccountSecondaryIndexes,
snapshot_archive_info::SnapshotArchiveInfoGetter,
snapshot_config::{LastFullSnapshotSlot, SnapshotConfig},
snapshot_config::SnapshotConfig,
snapshot_utils::{self, ArchiveFormat},
},
solana_sdk::{
@ -127,7 +127,6 @@ fn setup_snapshot_validator_config(
archive_format: ArchiveFormat::TarBzip2,
snapshot_version: snapshot_utils::SnapshotVersion::default(),
maximum_snapshots_to_retain: snapshot_utils::DEFAULT_MAX_FULL_SNAPSHOT_ARCHIVES_TO_RETAIN,
last_full_snapshot_slot: LastFullSnapshotSlot::default(),
};
// Create the account paths