mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-20 01:19:49 +00:00
uncomment breach_remedy in watchtower
This commit is contained in:
parent
ddcd77ab36
commit
e5502a58ba
2 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue