routing+htlcswitch: ProduceHtlcExtraData uses first hop pub key

This commit is contained in:
George Tsagkarelis
2025-06-23 13:01:01 +02:00
parent 01dfee6f8d
commit 1793b1ab64
4 changed files with 20 additions and 5 deletions

View File

@@ -14,6 +14,7 @@ import (
"github.com/lightningnetwork/lnd/lnwallet/chainfee"
"github.com/lightningnetwork/lnd/lnwire"
"github.com/lightningnetwork/lnd/record"
"github.com/lightningnetwork/lnd/routing/route"
"github.com/lightningnetwork/lnd/tlv"
)
@@ -495,8 +496,9 @@ type AuxHtlcModifier interface {
// data blob of an HTLC, may produce a different blob or modify the
// amount of bitcoin this htlc should carry.
ProduceHtlcExtraData(totalAmount lnwire.MilliSatoshi,
htlcCustomRecords lnwire.CustomRecords) (lnwire.MilliSatoshi,
lnwire.CustomRecords, error)
htlcCustomRecords lnwire.CustomRecords,
peer route.Vertex) (lnwire.MilliSatoshi, lnwire.CustomRecords,
error)
}
// AuxTrafficShaper is an interface that allows the sender to determine if a