lnwallet: fix logUpdate scope in restorePendingLocalUpdates
This commit is contained in:
1 file changed
+2
@@ -2120,6 +2120,8 @@ func (lc *LightningChannel) restorePendingLocalUpdates(
|
||||
// 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.
|
||||
for _, logUpdate := range pendingRemoteCommitDiff.LogUpdates {
|
||||
logUpdate := logUpdate
|
||||
|
||||
payDesc, err := lc.logUpdateToPayDesc(
|
||||
&logUpdate, lc.remoteUpdateLog, pendingHeight,
|
||||
chainfee.SatPerKWeight(pendingCommit.FeePerKw),
|
||||
|
||||
Reference in new issue
Block a user