aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-06-30 03:53:26 +0800
committerzelig <viktor.tron@gmail.com>2014-06-30 03:53:26 +0800
commit12972b4b65a303dc3f9e135b0e2d97f8b7a661e2 (patch)
treef53b4017b02373351ad33ce6c5a69e00726d56c7
parent2920795168dfe5c5f1f1d66f09026f971d5e53fd (diff)
downloaddexon-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.go2
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)