lnwallet: remove unnecessary chanID argument form unsignedLocalUpdates
This commit is contained in:
1 file changed
+2
-3
+2
-3
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user