lnwallet: make sure loop var is properly referenced

This commit is contained in:
yyforyongyu 2023-11-23 22:50:45 +08:00
parent 81841b7dab
commit 1ee665d14c
No known key found for this signature in database
GPG key ID: 9BCD95C4FF296868

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,