From 060cbff8dac5eda7f2db81e83d8f8193346b43bf Mon Sep 17 00:00:00 2001 From: f321x Date: Thu, 11 Dec 2025 18:52:15 +0100 Subject: [PATCH] lnpeer: dont remove from dont_settle_htlcs when failing Don't remove a payment hash from LNWallet.dont_settle_htlcs and dont_expire_htlcs if we are failing it. We might see another htlc with the same payment hash and should still not settle or expire it. --- electrum/lnpeer.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py index ecc1e98ff..f15dfc68d 100644 --- a/electrum/lnpeer.py +++ b/electrum/lnpeer.py @@ -2314,8 +2314,6 @@ class Peer(Logger, EventListener): local_height = self.network.blockchain().height() payment_hash = htlc_set.get_payment_hash() assert payment_hash is not None, "Empty htlc set?" - self.lnworker.dont_expire_htlcs.pop(payment_hash.hex(), None) - self.lnworker.dont_settle_htlcs.pop(payment_hash.hex(), None) # already failed for mpp_htlc in list(htlc_set.htlcs): chan = self.get_channel_by_id(mpp_htlc.channel_id) htlc_id = mpp_htlc.htlc.htlc_id