routing+htlcswitch: ProduceHtlcExtraData uses first hop pub key

This commit is contained in:
George Tsagkarelis committed 2025-07-02 12:03:34 +02:00
1 parent 01dfee6f8d
commit 1793b1ab64
4 files changed
+20 -5

No files matched your search

+3 -2
View File
@@ -9,6 +9,7 @@ import (
"github.com/lightningnetwork/lnd/htlcswitch"
"github.com/lightningnetwork/lnd/lnwallet"
"github.com/lightningnetwork/lnd/lnwire"
"github.com/lightningnetwork/lnd/routing/route"
"github.com/lightningnetwork/lnd/tlv"
"github.com/stretchr/testify/require"
)
@@ -161,8 +162,8 @@ func (*mockTrafficShaper) PaymentBandwidth(_, _, _ fn.Option[tlv.Blob],
// data blob of an HTLC, may produce a different blob or modify the
// amount of bitcoin this htlc should carry.
func (*mockTrafficShaper) ProduceHtlcExtraData(totalAmount lnwire.MilliSatoshi,
_ lnwire.CustomRecords) (lnwire.MilliSatoshi, lnwire.CustomRecords,
error) {
_ lnwire.CustomRecords, _ route.Vertex) (lnwire.MilliSatoshi,
lnwire.CustomRecords, error) {
return totalAmount, nil, nil
}