From 745f9afd3cd0f9cdfb70bb437bd8a42107680503 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Mon, 17 Jul 2023 09:40:02 +1000 Subject: [PATCH] Fix comments --- validator_client/src/initialized_validators.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/validator_client/src/initialized_validators.rs b/validator_client/src/initialized_validators.rs index 698920fb5ee..f15ea27c9b2 100644 --- a/validator_client/src/initialized_validators.rs +++ b/validator_client/src/initialized_validators.rs @@ -653,7 +653,7 @@ impl InitializedValidators { .save(&self.validators_dir) .map_err(Error::UnableToSaveDefinitions)?; - // 4. Delete the keystore password if it's not being used by any definition. + // 5. Delete the keystore password if it's not being used by any definition. if let Some(password_path) = password_path_opt.and_then(|p| p.canonicalize().ok()) { if self .definitions @@ -1273,8 +1273,10 @@ impl InitializedValidators { } } - /// Deletes any passwords store in the validator definitions file and + /// Deletes any passwords stored in the validator definitions file and /// returns a map of pubkey to deleted password. + /// + /// This should only be used for testing, it's rather destructive. pub fn delete_passwords_from_validator_definitions( &mut self, ) -> Result, Error> {