mirror of
https://code.gri.mw/GUI/grim.git
synced 2026-07-13 18:28:55 +00:00
node: do not remove lock file on cleanup
This commit is contained in:
@@ -366,15 +366,6 @@ impl Node {
|
||||
}
|
||||
let config = NodeConfig::node_server_config();
|
||||
let server_config = config.server.clone();
|
||||
|
||||
// Remove lock file if exists.
|
||||
let mut lock_path = PathBuf::from(&server_config.db_root);
|
||||
lock_path.push("grin.lock");
|
||||
if lock_path.exists() {
|
||||
fs::remove_file(lock_path).unwrap();
|
||||
}
|
||||
|
||||
// Remove chain data.
|
||||
let dirs_to_remove: Vec<&str> = vec!["header", "lmdb", "txhashset"];
|
||||
for dir in dirs_to_remove {
|
||||
let mut path = PathBuf::from(&server_config.db_root);
|
||||
|
||||
Reference in New Issue
Block a user