Browse Source

Try not to write files in tests.

cl-refactor
chriseth 10 years ago
parent
commit
db88799cf9
  1. 6
      libdevcrypto/SecretStore.cpp

6
libdevcrypto/SecretStore.cpp

@ -88,7 +88,8 @@ static js::mValue upgraded(string const& _s)
SecretStore::SecretStore(string const& _path): m_path(_path)
{
load();
if (!m_path.empty())
load();
}
bytes SecretStore::secret(h128 const& _uuid, function<string()> const& _pass, bool _useCache) const
@ -137,6 +138,9 @@ void SecretStore::clearCache() const
void SecretStore::save(string const& _keysPath)
{
if (_keysPath.empty())
return;
fs::path p(_keysPath);
fs::create_directories(p);
for (auto& k: m_keys)

Loading…
Cancel
Save