1
0

Rename maybe_init_lightning(). Call load_data() from there

This commit is contained in:
ThomasV
2020-11-20 08:35:57 +01:00
parent 13563697f5
commit 0b183444b4
2 changed files with 3 additions and 3 deletions

View File

@@ -347,12 +347,13 @@ class Network(Logger, NetworkRetryManager[ServerAddr]):
def has_channel_db(self):
return self.channel_db is not None
def maybe_init_lightning(self):
def init_channel_db(self):
if self.channel_db is None:
from . import lnrouter
from . import channel_db
self.channel_db = channel_db.ChannelDB(self)
self.path_finder = lnrouter.LNPathFinder(self.channel_db)
self.channel_db.load_data()
def start_gossip(self):
if self.lngossip is None: