twallet.py: always instantiate lnbackups - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 5d907907263efba51d3b9531de073aa3db6c9cd9 DIR parent 1855bcb17de9099469f25aca331b3afa232a3908 HTML Author: ThomasV <thomasv@electrum.org> Date: Thu, 22 Oct 2020 18:35:49 +0200 wallet.py: always instantiate lnbackups Diffstat: M electrum/wallet.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- DIR diff --git a/electrum/wallet.py b/electrum/wallet.py t@@ -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: t@@ -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()