--limit-ledger-size now accepts an optional slot count value

This commit is contained in:
Michael Vines
2020-01-20 12:41:05 -07:00
parent 5cf090c896
commit ebf6e1c0e9
2 changed files with 18 additions and 5 deletions

View File

@ -16,7 +16,7 @@ use std::time::Duration;
// - A validator to download a snapshot from a peer and boot from it
// - To make sure that if a validator needs to reboot from its own snapshot, it has enough slots locally
// to catch back up to where it was when it stopped
pub const MAX_LEDGER_SLOTS: u64 = 6400;
pub const DEFAULT_MAX_LEDGER_SLOTS: u64 = 6400;
// Remove a fixed number of slots at a time, it's more efficient than doing it one-by-one
pub const DEFAULT_PURGE_BATCH_SIZE: u64 = 256;