Change key DB to ~/.basecli/keys/keys.db

This commit is contained in:
Christopher Goes 2018-03-29 18:23:11 +02:00
parent fd4e2c53ed
commit e13b1f2ac9
No known key found for this signature in database
GPG Key ID: E828D98232D328D3
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ type KeyOutput struct {
// GetKeyBase initializes a keybase based on the configuration
func GetKeyBase() (keys.Keybase, error) {
if keybase == nil {
rootDir := filepath.Join(viper.GetString(cli.HomeFlag), ".tlc")
db, err := dbm.NewGoLevelDB(KeyDBName, filepath.Join(rootDir, "data"))
rootDir := viper.GetString(cli.HomeFlag)
db, err := dbm.NewGoLevelDB(KeyDBName, filepath.Join(rootDir, "keys"))
if err != nil {
return nil, err
}