lnwallet: make sure loop var is properly referenced

This commit is contained in:
yyforyongyu committed 2023-11-28 14:06:53 +08:00
1 parent 81841b7dab
commit 1ee665d14c
1 file changed
+2
+2
View File
@@ -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,