mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 13:24:44 +00:00
Remove blobs_db when purge-db (#5081)
This commit is contained in:
@@ -62,6 +62,13 @@ pub fn get_config<E: EthSpec>(
|
||||
fs::remove_dir_all(freezer_db)
|
||||
.map_err(|err| format!("Failed to remove freezer_db: {}", err))?;
|
||||
}
|
||||
|
||||
// Remove the blobs db.
|
||||
let blobs_db = client_config.get_blobs_db_path();
|
||||
if blobs_db.exists() {
|
||||
fs::remove_dir_all(blobs_db)
|
||||
.map_err(|err| format!("Failed to remove blobs_db: {}", err))?;
|
||||
}
|
||||
}
|
||||
|
||||
// Create `datadir` and any non-existing parent directories.
|
||||
|
||||
Reference in New Issue
Block a user