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:
@@ -208,7 +208,7 @@ class ElectrumGui(Logger):
|
||||
self.app.new_window_signal.emit(path, uri)
|
||||
|
||||
def show_lightning_dialog(self):
|
||||
if not self.daemon.network.is_lightning_running():
|
||||
if not self.daemon.network.has_channel_db():
|
||||
return
|
||||
if not self.lightning_dialog:
|
||||
self.lightning_dialog = LightningDialog(self)
|
||||
|
||||
Reference in New Issue
Block a user