From 5d907907263efba51d3b9531de073aa3db6c9cd9 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 22 Oct 2020 18:35:49 +0200 Subject: [PATCH] wallet.py: always instantiate lnbackups --- electrum/wallet.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/electrum/wallet.py b/electrum/wallet.py index 54a8563cb..59268436d 100644 --- 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()