From 1f1f22cfe8402761b6ca41a31666b7cc34d08b40 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Fri, 25 May 2018 18:38:44 -0700 Subject: [PATCH] lnwallet: clear modified HTLCs within updateLog.removeHtlcs --- lnwallet/channel.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 04fb14f8..02b7d07e 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -1165,6 +1165,9 @@ func (u *updateLog) removeHtlc(i uint64) { u.Remove(entry) delete(u.htlcIndex, i) + delete(u.modifiedHtlcs, i) +} + // htlcHasModification returns true if the HTLC identified by the passed index // has a pending modification within the log. func (u *updateLog) htlcHasModification(i uint64) bool {