diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 16c90af4b..f041d472d 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -1724,22 +1724,6 @@ func (lc *LightningChannel) restoreStateLogs( return nil } - // If we do have a dangling commitment for the remote party, then we'll - // also restore into the log any incoming HTLC's offered by them. Any - // outgoing HTLC's that were initially committed in this new state will - // be restored below. - for i := range pendingRemoteCommit.incomingHTLCs { - htlc := pendingRemoteCommit.incomingHTLCs[i] - lc.remoteUpdateLog.restoreHtlc(&htlc) - } - - // We'll also update the log counters to match the latest known - // counters in this dangling commitment. Otherwise, our updateLog would - // have dated counters as it was initially created using their lowest - // unrevoked commitment. - lc.remoteUpdateLog.logIndex = pendingRemoteCommit.theirMessageIndex - lc.remoteUpdateLog.htlcCounter = pendingRemoteCommit.theirHtlcIndex - pendingCommit := pendingRemoteCommitDiff.Commitment pendingHeight := pendingCommit.CommitHeight