diff options
author | Martin Holst Swende <martin@swende.se> | 2018-09-20 00:08:38 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-09-20 00:08:38 +0800 |
commit | 6f004c46d53958e2fe0e8aad5584a46f9f4bce6c (patch) | |
tree | 89667f749458f9c9f9c757e918cd42e7fd03ae03 /accounts/keystore/keystore_plain_test.go | |
parent | 16e95f33b73b21dc77c7aab40b9764ecc38382a5 (diff) | |
download | dexon-6f004c46d53958e2fe0e8aad5584a46f9f4bce6c.tar.gz dexon-6f004c46d53958e2fe0e8aad5584a46f9f4bce6c.tar.zst dexon-6f004c46d53958e2fe0e8aad5584a46f9f4bce6c.zip |
accounts/keystore: double-check keystore file after creation (#17348)
Diffstat (limited to 'accounts/keystore/keystore_plain_test.go')
-rw-r--r-- | accounts/keystore/keystore_plain_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/keystore/keystore_plain_test.go b/accounts/keystore/keystore_plain_test.go index a1c3bc4b6..32852a0ad 100644 --- a/accounts/keystore/keystore_plain_test.go +++ b/accounts/keystore/keystore_plain_test.go @@ -37,7 +37,7 @@ func tmpKeyStoreIface(t *testing.T, encrypted bool) (dir string, ks keyStore) { t.Fatal(err) } if encrypted { - ks = &keyStorePassphrase{d, veryLightScryptN, veryLightScryptP} + ks = &keyStorePassphrase{d, veryLightScryptN, veryLightScryptP, true} } else { ks = &keyStorePlain{d} } @@ -191,7 +191,7 @@ func TestV1_1(t *testing.T) { func TestV1_2(t *testing.T) { t.Parallel() - ks := &keyStorePassphrase{"testdata/v1", LightScryptN, LightScryptP} + ks := &keyStorePassphrase{"testdata/v1", LightScryptN, LightScryptP, true} addr := common.HexToAddress("cb61d5a9c4896fb9658090b597ef0e7be6f7b67e") file := "testdata/v1/cb61d5a9c4896fb9658090b597ef0e7be6f7b67e/cb61d5a9c4896fb9658090b597ef0e7be6f7b67e" k, err := ks.GetKey(addr, file, "g") |