diff --git a/waddrmgr/manager.go b/waddrmgr/manager.go index 2c41ca6..2890bb0 100644 --- a/waddrmgr/manager.go +++ b/waddrmgr/manager.go @@ -1226,6 +1226,10 @@ func (m *Manager) Unlock(passphrase []byte) error { } info.managedAddr.privKeyEncrypted = privKeyEncrypted info.managedAddr.privKeyCT = privKeyBytes + + // Avoid re-deriving this key on subsequent unlocks. + m.deriveOnUnlock[0] = nil + m.deriveOnUnlock = m.deriveOnUnlock[1:] } m.locked = false