follow-up previous

This commit is contained in:
ThomasV 2019-05-03 20:52:11 +02:00
parent 842fff832f
commit 746dd725c6

View file

@ -300,9 +300,9 @@ class Network(Logger):
from . import lnwatcher from . import lnwatcher
from . import lnworker from . import lnworker
from . import lnrouter from . import lnrouter
if self.config.get('lightning'):
self.channel_db = lnrouter.ChannelDB(self) self.channel_db = lnrouter.ChannelDB(self)
self.path_finder = lnrouter.LNPathFinder(self.channel_db) self.path_finder = lnrouter.LNPathFinder(self.channel_db)
if self.config.get('lightning'):
self.lnwatcher = lnwatcher.LNWatcher(self) self.lnwatcher = lnwatcher.LNWatcher(self)
self.lngossip = lnworker.LNGossip(self) self.lngossip = lnworker.LNGossip(self)
else: else: