1
0

lnwatcher: remove address callback if keep_watching is False

(follow-up 9b72dc297b)
This commit is contained in:
ThomasV
2025-12-05 11:53:24 +01:00
parent 40729aa0e5
commit cd1d384db5

View File

@@ -109,6 +109,8 @@ class LNWatcher(Logger, EventListener):
closing_tx = self.adb.get_transaction(closing_txid)
if closing_tx:
keep_watching = await self.sweep_commitment_transaction(funding_outpoint, closing_tx)
if not keep_watching:
self.remove_callback(address)
else:
self.logger.info(f"channel {funding_outpoint} closed by {closing_txid}. still waiting for tx itself...")
keep_watching = True