mirror of
https://github.com/wealdtech/ethdo.git
synced 2026-01-10 06:28:07 -05:00
Allow keystore without path.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
dev:
|
||||
1.28.4:
|
||||
- allow validator exit to use a keystore as its validator parameter
|
||||
|
||||
1.28.2:
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
|
||||
// ReleaseVersion is the release version of the codebase.
|
||||
// Usually overridden by tag names when building binaries.
|
||||
var ReleaseVersion = "local build (latest release 1.28.3)"
|
||||
var ReleaseVersion = "local build (latest release 1.28.4)"
|
||||
|
||||
// versionCmd represents the version command.
|
||||
var versionCmd = &cobra.Command{
|
||||
|
||||
@@ -65,7 +65,14 @@ func ParseAccount(ctx context.Context,
|
||||
return parseAccountFromMnemonic(ctx, accountStr, supplementary, unlock)
|
||||
default:
|
||||
// This could be the path to a keystore.
|
||||
return nil, fmt.Errorf("unknown account specifier %s", accountStr)
|
||||
if _, err := os.Stat(accountStr); err != nil {
|
||||
return nil, fmt.Errorf("unknown account specifier %s", accountStr)
|
||||
}
|
||||
account, err := parseAccountFromKeystorePath(ctx, accountStr, supplementary, unlock)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return account, nil
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user