electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 5d907907263efba51d3b9531de073aa3db6c9cd9
parent 1855bcb17de9099469f25aca331b3afa232a3908
Author: ThomasV <thomasv@electrum.org>
Date:   Thu, 22 Oct 2020 18:35:49 +0200

wallet.py: always instantiate lnbackups

Diffstat:
Melectrum/wallet.py | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/electrum/wallet.py b/electrum/wallet.py @@ -285,7 +285,8 @@ class Abstract_Wallet(AddressSynchronizer, ABC): self._coin_price_cache = {} self.lnworker = None - self.lnbackups = None + # a wallet may have channel backups, regardless of lnworker activation + self.lnbackups = LNBackups(self) def save_db(self): if self.storage: @@ -2434,8 +2435,6 @@ class Deterministic_Wallet(Abstract_Wallet): # lnworker can only be initialized once receiving addresses are available # therefore we instantiate lnworker in DeterministicWallet self.lnworker = LNWallet(self, ln_xprv) if ln_xprv else None - # does it make sense to instantiate lnbackups without lnworker? - self.lnbackups = LNBackups(self) def has_seed(self): return self.keystore.has_seed()