Key files include timestamp in name. (#1700)

* Key files include timestamp in name.

Introduce timestamp into new key files; keep filename around, so
that we don't accidentally duplicate keys.

* Remove unnecessary clone

* Fix test code.

* Remove log module from ethstore
This commit is contained in:
Gav Wood
2016-07-25 10:45:45 +02:00
committed by GitHub
parent f048839a4b
commit 435ba186f8
11 changed files with 55 additions and 26 deletions

View File

@@ -114,8 +114,8 @@ impl KeyDirectory for NullDir {
Ok(vec![])
}
fn insert(&self, _account: SafeAccount) -> Result<(), SSError> {
Ok(())
fn insert(&self, account: SafeAccount) -> Result<SafeAccount, SSError> {
Ok(account)
}
fn remove(&self, _address: &SSAddress) -> Result<(), SSError> {