mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
lnwallet: remove unnecessary chanID argument form unsignedLocalUpdates
This commit is contained in:
parent
4fadbb09bd
commit
93d17a48a8
1 changed files with 2 additions and 3 deletions
|
@ -5324,7 +5324,6 @@ func (lc *LightningChannel) ReceiveRevocation(revMsg *lnwire.RevokeAndAck) (
|
||||||
localChainTail := lc.commitChains.Local.tail().height
|
localChainTail := lc.commitChains.Local.tail().height
|
||||||
|
|
||||||
source := lc.ShortChanID()
|
source := lc.ShortChanID()
|
||||||
chanID := lnwire.NewChanIDFromOutPoint(lc.channelState.FundingOutpoint)
|
|
||||||
|
|
||||||
// Determine the set of htlcs that can be forwarded as a result of
|
// Determine the set of htlcs that can be forwarded as a result of
|
||||||
// having received the revocation. We will simultaneously construct the
|
// 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
|
localMessageIndex := lc.commitChains.Local.tail().messageIndices.Local
|
||||||
|
|
||||||
localPeerUpdates := lc.unsignedLocalUpdates(
|
localPeerUpdates := lc.unsignedLocalUpdates(
|
||||||
remoteMessageIndex, localMessageIndex, chanID,
|
remoteMessageIndex, localMessageIndex,
|
||||||
)
|
)
|
||||||
|
|
||||||
// Now that we have gathered the set of HTLCs to forward, separated by
|
// 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
|
// NOTE: remoteMessageIndex is the height on the tip because this is called
|
||||||
// before the tail is advanced to the tip during ReceiveRevocation.
|
// before the tail is advanced to the tip during ReceiveRevocation.
|
||||||
func (lc *LightningChannel) unsignedLocalUpdates(remoteMessageIndex,
|
func (lc *LightningChannel) unsignedLocalUpdates(remoteMessageIndex,
|
||||||
localMessageIndex uint64, chanID lnwire.ChannelID) []channeldb.LogUpdate {
|
localMessageIndex uint64) []channeldb.LogUpdate {
|
||||||
|
|
||||||
var localPeerUpdates []channeldb.LogUpdate
|
var localPeerUpdates []channeldb.LogUpdate
|
||||||
for e := lc.updateLogs.Local.Front(); e != nil; e = e.Next() {
|
for e := lc.updateLogs.Local.Front(); e != nil; e = e.Next() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue