mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-22 07:52:44 +00:00
Fixed all tests and binaries to compile
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ func newPassword(cmd *cobra.Command, args []string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
info, err := GetKeyManager().Create(name, pass, algo)
|
||||
info, _, err := GetKeyManager().Create(name, pass, algo)
|
||||
if err == nil {
|
||||
printInfo(info)
|
||||
}
|
||||
|
||||
@@ -48,10 +48,15 @@ func GetKeyManager() keys.Manager {
|
||||
// store the keys directory
|
||||
rootDir := viper.GetString(cli.HomeFlag)
|
||||
keyDir := filepath.Join(rootDir, KeySubdir)
|
||||
|
||||
// TODO: smarter loading??? with language and fallback?
|
||||
codec := keys.MustLoadCodec("english")
|
||||
|
||||
// and construct the key manager
|
||||
manager = cryptostore.New(
|
||||
cryptostore.SecretBox,
|
||||
filestorage.New(keyDir),
|
||||
codec,
|
||||
)
|
||||
}
|
||||
return manager
|
||||
|
||||
Reference in New Issue
Block a user