tuncomment breach_remedy in watchtower - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit e5502a58ba8fb7302f9b869981f6b23637daa6f9
DIR parent ddcd77ab3656797243cf245a51fcc832b1d3d6c4
HTML Author: ThomasV <thomasv@electrum.org>
Date: Mon, 9 Sep 2019 18:49:14 +0200
uncomment breach_remedy in watchtower
Diffstat:
M electrum/lnwatcher.py | 3 ++-
M electrum/network.py | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
---
DIR diff --git a/electrum/lnwatcher.py b/electrum/lnwatcher.py
t@@ -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:
DIR diff --git a/electrum/network.py b/electrum/network.py
t@@ -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