mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-02-18 21:14:40 +01:00
lnwallet: fix logUpdate scope in restorePendingLocalUpdates
This commit is contained in:
@@ -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