Skip to content

Commit

Permalink
routing: add htlcAmt to PaymentBandwidth method of TlvTrafficShaper
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeTsagk committed Sep 12, 2024
1 parent e78b0bb commit 38dcaad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routing/bandwidth.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type TlvTrafficShaper interface {
// is a custom channel that should be handled by the traffic shaper, the
// HandleTraffic method should be called first.
PaymentBandwidth(htlcBlob, commitmentBlob fn.Option[tlv.Blob],
linkBandwidth lnwire.MilliSatoshi) (lnwire.MilliSatoshi, error)
linkBandwidth, htlcAmt lnwire.MilliSatoshi) (lnwire.MilliSatoshi, error)
}

// AuxHtlcModifier is an interface that allows the sender to modify the outgoing
Expand Down Expand Up @@ -166,7 +166,7 @@ func (b *bandwidthManager) getBandwidth(cid lnwire.ShortChannelID,
// Ask for a specific bandwidth to be used for the channel.
commitmentBlob := link.CommitmentCustomBlob()
auxBandwidth, err = ts.PaymentBandwidth(
htlcBlob, commitmentBlob, linkBandwidth,
htlcBlob, commitmentBlob, linkBandwidth, htlcAmount,
)
if err != nil {
return fmt.Errorf("failed to get bandwidth from "+
Expand Down

0 comments on commit 38dcaad

Please sign in to comment.