Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Jul 16, 2023
1 parent 95de58e commit 745f9af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions validator_client/src/initialized_validators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<HashMap<PublicKey, ZeroizeString>, Error> {
Expand Down

0 comments on commit 745f9af

Please sign in to comment.