tremove channel from channel_timestamps if funding_tx has been dropped from mempool - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit c9e39d3a794b69b4666452a599915cb1a7d35130
DIR parent e05cd2006a91c37b7a0bfd33b271db3106b24741
HTML Author: ThomasV <thomasv@electrum.org>
Date: Tue, 18 Feb 2020 18:04:23 +0100
remove channel from channel_timestamps if funding_tx has been dropped from mempool
Diffstat:
M electrum/lnwatcher.py | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
DIR diff --git a/electrum/lnwatcher.py b/electrum/lnwatcher.py
t@@ -336,6 +336,7 @@ class LNWalletWatcher(LNWatcher):
if not chan:
return
if funding_height.height == TX_HEIGHT_LOCAL:
+ self.lnworker.channel_timestamps.pop(bh2u(chan.channel_id))
return
elif closing_height.height == TX_HEIGHT_LOCAL:
await self.lnworker.update_open_channel(chan, funding_txid, funding_height)