call addr.lock() instead of handrolling.

This commit is contained in:
Owain G. Ainsworth 2014-03-04 14:59:53 +00:00
parent a75ec902e8
commit 34e4c0be35

View file

@ -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