call addr.lock() instead of handrolling.
This commit is contained in:
parent
a75ec902e8
commit
34e4c0be35
1 changed files with 1 additions and 2 deletions
|
@ -834,8 +834,7 @@ func (w *Wallet) Lock() (err error) {
|
|||
|
||||
// Remove clear text private keys from all address entries.
|
||||
for _, addr := range w.addrMap {
|
||||
zero(addr.privKeyCT)
|
||||
addr.privKeyCT = nil
|
||||
_ = addr.lock()
|
||||
}
|
||||
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue