routing+htlcswitch: ProduceHtlcExtraData uses first hop pub key

This commit is contained in:
George Tsagkarelis
2025-06-23 13:01:01 +02:00
committed by Oliver Gugger
parent c91753eda1
commit ab036990b5
4 changed files with 20 additions and 5 deletions

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
}