diff options
author | zelig <viktor.tron@gmail.com> | 2014-06-30 03:53:26 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-06-30 03:53:26 +0800 |
commit | 12972b4b65a303dc3f9e135b0e2d97f8b7a661e2 (patch) | |
tree | f53b4017b02373351ad33ce6c5a69e00726d56c7 | |
parent | 2920795168dfe5c5f1f1d66f09026f971d5e53fd (diff) | |
download | dexon-12972b4b65a303dc3f9e135b0e2d97f8b7a661e2.tar.gz dexon-12972b4b65a303dc3f9e135b0e2d97f8b7a661e2.tar.zst dexon-12972b4b65a303dc3f9e135b0e2d97f8b7a661e2.zip |
DBKeyStore.Load returns no error if keyring not found in db
-rw-r--r-- | ethcrypto/key_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethcrypto/key_store.go b/ethcrypto/key_store.go index f14f14205..460f0c978 100644 --- a/ethcrypto/key_store.go +++ b/ethcrypto/key_store.go @@ -32,7 +32,7 @@ func (k *DBKeyStore) Save(session string, keyRing *KeyRing) error { func (k *DBKeyStore) Load(session string) (*KeyRing, error) { data, err := k.db.Get(k.dbKey(session)) if err != nil { - return nil, err + return nil, nil } var keyRing *KeyRing keyRing, err = NewKeyRingFromBytes(data) |