mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
Handles issue with empty dirs on validator accounts create (#5940)
* handles issue with empty dirs on validator accounts create * better comments * Merge refs/heads/master into fix-validator-accounts-create * Merge refs/heads/master into fix-validator-accounts-create * Terence's review
This commit is contained in:
@@ -49,7 +49,7 @@ func NewKeystore(input string) (KeyManager, string, error) {
|
||||
}
|
||||
log.WithField("keystorePath", opts.Path).Info("Checking validator keys")
|
||||
|
||||
exists, err := accounts.Exists(opts.Path)
|
||||
exists, err := accounts.Exists(opts.Path, true /* assertNonEmpty */)
|
||||
if err != nil {
|
||||
return nil, keystoreOptsHelp, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user