network: load gossip db early
The gossip db is loaded early when the network is started to save time when the gui is locked and a wallet not yet loaded. Side effects of the LNWallet to start peering when a channel db is loaded is circumvented.
This commit is contained in:
@@ -344,7 +344,7 @@ class Network(Logger, NetworkRetryManager[ServerAddr]):
|
||||
"""Our guess whether the device has Internet-connectivity."""
|
||||
return self._has_ever_managed_to_connect_to_server
|
||||
|
||||
def is_lightning_running(self):
|
||||
def has_channel_db(self):
|
||||
return self.channel_db is not None
|
||||
|
||||
def maybe_init_lightning(self):
|
||||
|
||||
Reference in New Issue
Block a user