periodically save config in separate folders

This commit is contained in:
Sathish Ambley
2019-06-13 22:03:54 -07:00
committed by Michael Vines
parent 07c183bb84
commit 8b41a5d725
5 changed files with 16 additions and 9 deletions

View File

@ -166,7 +166,7 @@ impl BankForks {
for slot in diff.iter() {
if **slot > root {
let _ = self.add_snapshot(**slot, root);
} else if **slot > 0 {
} else {
BankForks::remove_snapshot(**slot, &self.snapshot_path);
}
}