From 1ee665d14c91fce76f6ef14d22134085577d1cbd Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Thu, 23 Nov 2023 22:50:45 +0800 Subject: [PATCH] lnwallet: make sure loop var is properly referenced --- lnwallet/channel.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index faef703a1..1bf57b21d 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -904,6 +904,8 @@ func (lc *LightningChannel) extractPayDescs(commitHeight uint64, // persist state w.r.t to if forwarded or not, or can // inadvertently trigger replays + htlc := htlc + payDesc, err := lc.diskHtlcToPayDesc( feeRate, commitHeight, &htlc, localCommitKeys, remoteCommitKeys,