From 93d17a48a8ac4a7bfac23c930e2e10b0566dc85e Mon Sep 17 00:00:00 2001 From: Keagan McClelland Date: Fri, 14 Jun 2024 17:45:36 -0700 Subject: [PATCH] lnwallet: remove unnecessary chanID argument form unsignedLocalUpdates --- lnwallet/channel.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 0000026c2..32492171f 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -5324,7 +5324,6 @@ func (lc *LightningChannel) ReceiveRevocation(revMsg *lnwire.RevokeAndAck) ( localChainTail := lc.commitChains.Local.tail().height source := lc.ShortChanID() - chanID := lnwire.NewChanIDFromOutPoint(lc.channelState.FundingOutpoint) // Determine the set of htlcs that can be forwarded as a result of // having received the revocation. We will simultaneously construct the @@ -5426,7 +5425,7 @@ func (lc *LightningChannel) ReceiveRevocation(revMsg *lnwire.RevokeAndAck) ( localMessageIndex := lc.commitChains.Local.tail().messageIndices.Local localPeerUpdates := lc.unsignedLocalUpdates( - remoteMessageIndex, localMessageIndex, chanID, + remoteMessageIndex, localMessageIndex, ) // Now that we have gathered the set of HTLCs to forward, separated by @@ -8736,7 +8735,7 @@ func (lc *LightningChannel) FwdMinHtlc() lnwire.MilliSatoshi { // NOTE: remoteMessageIndex is the height on the tip because this is called // before the tail is advanced to the tip during ReceiveRevocation. func (lc *LightningChannel) unsignedLocalUpdates(remoteMessageIndex, - localMessageIndex uint64, chanID lnwire.ChannelID) []channeldb.LogUpdate { + localMessageIndex uint64) []channeldb.LogUpdate { var localPeerUpdates []channeldb.LogUpdate for e := lc.updateLogs.Local.Front(); e != nil; e = e.Next() {