htlcswitch+routing: add htlc blob to ShouldHandleTraffic

Whether we should let the aux bandwidth manager decide what the
bandwidth of a channel is should also depend on whether the HTLC is a
custom HTLC, not just the channel.
This commit is contained in:
Oliver Gugger committed 2025-04-17 11:52:56 +02:00
1 parent cf0e0ff32c
commit 5fb0f43172
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -509,7 +509,7 @@ type AuxTrafficShaper interface {
// identified by the provided channel ID may have external mechanisms
// that would allow it to carry out the payment.
ShouldHandleTraffic(cid lnwire.ShortChannelID,
fundingBlob fn.Option[tlv.Blob]) (bool, error)
fundingBlob, htlcBlob fn.Option[tlv.Blob]) (bool, error)
// PaymentBandwidth returns the available bandwidth for a custom channel
// decided by the given channel aux blob and HTLC blob. A return value