mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
routing+htlcswitch: ProduceHtlcExtraData uses first hop pub key
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user