accounts/keystore: double-check keystore file after creation (#17348)

This commit is contained in:
Martin Holst Swende
2018-09-19 18:08:38 +02:00
committed by Felix Lange
parent 16e95f33b7
commit 6f004c46d5
4 changed files with 41 additions and 10 deletions

View File

@ -78,7 +78,7 @@ type unlocked struct {
// NewKeyStore creates a keystore for the given directory.
func NewKeyStore(keydir string, scryptN, scryptP int) *KeyStore {
keydir, _ = filepath.Abs(keydir)
ks := &KeyStore{storage: &keyStorePassphrase{keydir, scryptN, scryptP}}
ks := &KeyStore{storage: &keyStorePassphrase{keydir, scryptN, scryptP, false}}
ks.init(keydir)
return ks
}