htlcswitch+routing: add funding blob to PaymentBandwidth

For certain auxiliary bandwidth checks we need to know the funding blob
that was present when the channel was created.
This commit is contained in:
Oliver Gugger committed 2025-04-22 21:21:11 +02:00
1 parent 987302923d
commit 56d2381f51
3 files changed
+14 -12

No files matched your search

+1 -1
View File
@@ -3504,7 +3504,7 @@ func (l *channelLink) AuxBandwidth(amount lnwire.MilliSatoshi,
// Ask for a specific bandwidth to be used for the channel.
commitmentBlob := l.CommitmentCustomBlob()
auxBandwidth, err := ts.PaymentBandwidth(
htlcBlob, commitmentBlob, l.Bandwidth(), amount,
fundingBlob, htlcBlob, commitmentBlob, l.Bandwidth(), amount,
l.channel.FetchLatestAuxHTLCView(),
)
if err != nil {