Skip to content

Commit

Permalink
Create validator if it is missing. #22
Browse files Browse the repository at this point in the history
  • Loading branch information
Tumas committed Apr 17, 2024
1 parent 0a8a929 commit 5767f98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions slashing_protection/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,7 @@ fn move_slashing_protection_db_to_validator_dir(
}

if beacon_db_path.try_exists()? {
fs_err::create_dir_all(validator_directory)?;
fs_err::copy(&beacon_db_path, &validator_db_path)?;
fs_err::remove_file(&beacon_db_path)?;

Expand Down

0 comments on commit 5767f98

Please sign in to comment.