Use standard tmp-snapshot- file prefix for the "new_state" archive for better cleanup/consistency

This commit is contained in:
Michael Vines
2021-01-11 11:38:55 -08:00
parent b0e6e29527
commit 4a66e3eddc
2 changed files with 16 additions and 7 deletions

View File

@ -220,6 +220,7 @@ fn main() {
exit(1);
})
}
solana_runtime::snapshot_utils::remove_tmp_snapshot_archives(&ledger_path);
let validator_log_symlink = ledger_path.join("validator.log");
let logfile = if output != Output::Log {