lnwallet: fix logUpdate scope in restorePendingLocalUpdates
This commit is contained in:
parent
9d0d5bdfaf
commit
97007fc4fa
@ -2120,6 +2120,8 @@ func (lc *LightningChannel) restorePendingLocalUpdates(
|
|||||||
// If we did have a dangling commit, then we'll examine which updates
|
// If we did have a dangling commit, then we'll examine which updates
|
||||||
// we included in that state and re-insert them into our update log.
|
// we included in that state and re-insert them into our update log.
|
||||||
for _, logUpdate := range pendingRemoteCommitDiff.LogUpdates {
|
for _, logUpdate := range pendingRemoteCommitDiff.LogUpdates {
|
||||||
|
logUpdate := logUpdate
|
||||||
|
|
||||||
payDesc, err := lc.logUpdateToPayDesc(
|
payDesc, err := lc.logUpdateToPayDesc(
|
||||||
&logUpdate, lc.remoteUpdateLog, pendingHeight,
|
&logUpdate, lc.remoteUpdateLog, pendingHeight,
|
||||||
chainfee.SatPerKWeight(pendingCommit.FeePerKw),
|
chainfee.SatPerKWeight(pendingCommit.FeePerKw),
|
||||||
|
Loading…
Reference in New Issue
Block a user