From 708428c21379573cf8ce6dffe3817717541b5b25 Mon Sep 17 00:00:00 2001 From: tom <69969590+simlecode@users.noreply.github.com> Date: Wed, 19 Jan 2022 16:24:04 +0800 Subject: [PATCH] fix wallet unlock failed (#4715) --- pkg/wallet/dsbackend.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/wallet/dsbackend.go b/pkg/wallet/dsbackend.go index 46917a6eaf..fd56f6933b 100644 --- a/pkg/wallet/dsbackend.go +++ b/pkg/wallet/dsbackend.go @@ -228,11 +228,6 @@ func (backend *DSBackend) GetKeyInfo(addr address.Address) (*crypto.KeyInfo, err //GetKeyInfoPassphrase get private private key from wallet, get encrypt byte from db and decrypto it with password func (backend *DSBackend) GetKeyInfoPassphrase(addr address.Address, password []byte) (*crypto.KeyInfo, error) { - defer func() { - for i := range password { - password[i] = 0 - } - }() if !backend.HasAddress(addr) { return nil, errors.New("backend does not contain address") }