Add incremental_snapshot_archive_interval_slots to SnapshotConfig (#19026)

This commit also renames `snapshot_interval_slots` to
`full_snapshot_archive_interval_slots`, updates the comments on the
fields, and make appropriate updates where SnapshotConfig is used.
This commit is contained in:
Brooks Prumo
2021-08-04 14:40:20 -05:00
committed by GitHub
parent cc27b8a5a7
commit ca14475085
11 changed files with 26 additions and 15 deletions

View File

@@ -2494,11 +2494,12 @@ pub fn main() {
})
});
validator_config.snapshot_config = Some(SnapshotConfig {
snapshot_interval_slots: if snapshot_interval_slots > 0 {
full_snapshot_archive_interval_slots: if snapshot_interval_slots > 0 {
snapshot_interval_slots
} else {
std::u64::MAX
},
incremental_snapshot_archive_interval_slots: Slot::MAX,
snapshot_path,
snapshot_package_output_path: snapshot_output_dir.clone(),
archive_format,