Skip to content

Commit 93d17a4

Browse files
committed
lnwallet: remove unnecessary chanID argument form unsignedLocalUpdates
1 parent 4fadbb0 commit 93d17a4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lnwallet/channel.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5324,7 +5324,6 @@ func (lc *LightningChannel) ReceiveRevocation(revMsg *lnwire.RevokeAndAck) (
53245324
localChainTail := lc.commitChains.Local.tail().height
53255325

53265326
source := lc.ShortChanID()
5327-
chanID := lnwire.NewChanIDFromOutPoint(lc.channelState.FundingOutpoint)
53285327

53295328
// Determine the set of htlcs that can be forwarded as a result of
53305329
// having received the revocation. We will simultaneously construct the
@@ -5426,7 +5425,7 @@ func (lc *LightningChannel) ReceiveRevocation(revMsg *lnwire.RevokeAndAck) (
54265425
localMessageIndex := lc.commitChains.Local.tail().messageIndices.Local
54275426

54285427
localPeerUpdates := lc.unsignedLocalUpdates(
5429-
remoteMessageIndex, localMessageIndex, chanID,
5428+
remoteMessageIndex, localMessageIndex,
54305429
)
54315430

54325431
// Now that we have gathered the set of HTLCs to forward, separated by
@@ -8736,7 +8735,7 @@ func (lc *LightningChannel) FwdMinHtlc() lnwire.MilliSatoshi {
87368735
// NOTE: remoteMessageIndex is the height on the tip because this is called
87378736
// before the tail is advanced to the tip during ReceiveRevocation.
87388737
func (lc *LightningChannel) unsignedLocalUpdates(remoteMessageIndex,
8739-
localMessageIndex uint64, chanID lnwire.ChannelID) []channeldb.LogUpdate {
8738+
localMessageIndex uint64) []channeldb.LogUpdate {
87408739

87418740
var localPeerUpdates []channeldb.LogUpdate
87428741
for e := lc.updateLogs.Local.Front(); e != nil; e = e.Next() {

0 commit comments

Comments
 (0)