aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-07-09 21:04:19 +0800
committerzelig <viktor.tron@gmail.com>2015-07-09 21:07:35 +0800
commitc3f5403b643f67df4061cb570f3b19ba95f83ba2 (patch)
tree03ade907ec9de877c77b6c891c49a082eb0313ec
parent589f1c85b901b06d0058040a02890518b6aa7ab8 (diff)
downloaddexon-c3f5403b643f67df4061cb570f3b19ba95f83ba2.tar
dexon-c3f5403b643f67df4061cb570f3b19ba95f83ba2.tar.gz
dexon-c3f5403b643f67df4061cb570f3b19ba95f83ba2.tar.bz2
dexon-c3f5403b643f67df4061cb570f3b19ba95f83ba2.tar.lz
dexon-c3f5403b643f67df4061cb570f3b19ba95f83ba2.tar.xz
dexon-c3f5403b643f67df4061cb570f3b19ba95f83ba2.tar.zst
dexon-c3f5403b643f67df4061cb570f3b19ba95f83ba2.zip
fix wallet key duplicate write - how did it get there? mystery. fixes #1411
-rw-r--r--accounts/account_manager.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/accounts/account_manager.go b/accounts/account_manager.go
index c9e06261a..2a9d9b0ae 100644
--- a/accounts/account_manager.go
+++ b/accounts/account_manager.go
@@ -228,8 +228,5 @@ func (am *Manager) ImportPreSaleKey(keyJSON []byte, password string) (acc Accoun
if err != nil {
return
}
- if err = am.keyStore.StoreKey(key, password); err != nil {
- return
- }
return Account{Address: key.Address}, nil
}