lnwallet: make sure loop var is properly referenced
This commit is contained in:
1 file changed
+2
@@ -904,6 +904,8 @@ func (lc *LightningChannel) extractPayDescs(commitHeight uint64,
|
|||||||
// persist state w.r.t to if forwarded or not, or can
|
// persist state w.r.t to if forwarded or not, or can
|
||||||
// inadvertently trigger replays
|
// inadvertently trigger replays
|
||||||
|
|
||||||
|
htlc := htlc
|
||||||
|
|
||||||
payDesc, err := lc.diskHtlcToPayDesc(
|
payDesc, err := lc.diskHtlcToPayDesc(
|
||||||
feeRate, commitHeight, &htlc,
|
feeRate, commitHeight, &htlc,
|
||||||
localCommitKeys, remoteCommitKeys,
|
localCommitKeys, remoteCommitKeys,
|
||||||
|
|||||||
Reference in new issue
Block a user