From 81065f199255f968c7272b8c1de001528ef2d741 Mon Sep 17 00:00:00 2001 From: Tumas Date: Wed, 24 Apr 2024 14:31:57 +0300 Subject: [PATCH] Create validator dir if missing when moving slashing protection interchange files. #22 --- slashing_protection/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/slashing_protection/src/lib.rs b/slashing_protection/src/lib.rs index b2a2a72c..e567b989 100644 --- a/slashing_protection/src/lib.rs +++ b/slashing_protection/src/lib.rs @@ -949,6 +949,7 @@ fn move_interchange_backup_files_to_validator_dir( let validator_backup_path = validator_directory.as_ref().join(file_name); if !validator_backup_path.try_exists()? { + fs_err::create_dir_all(validator_directory.as_ref())?; fs_err::copy(&beacon_backup_path, &validator_backup_path)?; fs_err::remove_file(&beacon_backup_path)?;