1
0

wallet.py: always instantiate lnbackups

This commit is contained in:
ThomasV
2020-10-22 18:35:49 +02:00
parent 1855bcb17d
commit 5d90790726

View File

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