Skip to content

Commit 38dcaad

Browse files
committed
routing: add htlcAmt to PaymentBandwidth method of TlvTrafficShaper
1 parent e78b0bb commit 38dcaad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routing/bandwidth.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type TlvTrafficShaper interface {
4444
// is a custom channel that should be handled by the traffic shaper, the
4545
// HandleTraffic method should be called first.
4646
PaymentBandwidth(htlcBlob, commitmentBlob fn.Option[tlv.Blob],
47-
linkBandwidth lnwire.MilliSatoshi) (lnwire.MilliSatoshi, error)
47+
linkBandwidth, htlcAmt lnwire.MilliSatoshi) (lnwire.MilliSatoshi, error)
4848
}
4949

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

0 commit comments

Comments
 (0)