crypto: allow to provide non-default scrypt parameters

This commit is contained in:
Anna Shaleva 2021-06-04 14:27:22 +03:00
parent 61dfca346c
commit 50296975e2
24 changed files with 59 additions and 58 deletions

View file

@ -66,7 +66,7 @@ func getTestOracle(t *testing.T, bc *Blockchain, walletPath, pass string) (
w, err := wallet.NewWalletFromFile(path.Join(oracleModulePath, walletPath))
require.NoError(t, err)
require.NoError(t, w.Accounts[0].Decrypt(pass))
require.NoError(t, w.Accounts[0].Decrypt(pass, w.Scrypt))
return w.Accounts[0], orc, m, ch
}