mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 10:22:38 +00:00
Allow user to set an epoch margin for pruning
This commit is contained in:
@@ -201,6 +201,10 @@ impl Config {
|
||||
pub fn create_data_dir(&self) -> Result<PathBuf, String> {
|
||||
ensure_dir_exists(self.get_data_dir())
|
||||
}
|
||||
|
||||
pub fn get_blob_prune_margin_epochs(&self) -> Option<u64> {
|
||||
self.store.blob_prune_margin_epochs
|
||||
}
|
||||
}
|
||||
|
||||
/// Ensure that the directory at `path` exists, by creating it and all parents if necessary.
|
||||
|
||||
Reference in New Issue
Block a user