commit e5502a58ba8fb7302f9b869981f6b23637daa6f9
parent ddcd77ab3656797243cf245a51fcc832b1d3d6c4
Author: ThomasV <thomasv@electrum.org>
Date: Mon, 9 Sep 2019 18:49:14 +0200
uncomment breach_remedy in watchtower
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/electrum/lnwatcher.py b/electrum/lnwatcher.py
@@ -186,7 +186,8 @@ class LNWatcher(AddressSynchronizer):
self.network.trigger_callback('channel_closed', funding_outpoint, spenders,
funding_txid, funding_height, closing_txid,
closing_height, closing_tx) # FIXME sooo many args..
- #await self.do_breach_remedy(funding_outpoint, spenders)
+ # TODO: add tests for local_watchtower
+ await self.do_breach_remedy(funding_outpoint, spenders)
if not keep_watching:
await self.unwatch_channel(address, funding_outpoint)
else:
diff --git a/electrum/network.py b/electrum/network.py
@@ -308,7 +308,7 @@ class Network(Logger):
self.channel_db = channel_db.ChannelDB(self)
self.path_finder = lnrouter.LNPathFinder(self.channel_db)
self.lngossip = lnworker.LNGossip(self)
- self.local_watchtower = lnwatcher.WatchTower(self) if self.config.get('local_watchtower', True) else None
+ self.local_watchtower = lnwatcher.WatchTower(self) if self.config.get('local_watchtower', False) else None
else:
self.channel_db = None # type: Optional[ChannelDB]
self.lngossip = None