From 97007fc4faf984932b0e67a29b7fb77df3d7e9c8 Mon Sep 17 00:00:00 2001 From: eugene Date: Wed, 21 Apr 2021 17:37:21 -0400 Subject: [PATCH] lnwallet: fix logUpdate scope in restorePendingLocalUpdates --- lnwallet/channel.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 792e5c59..23518bfd 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -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),