mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-02 03:54:26 +02:00
routing+htlcswitch: ProduceHtlcExtraData uses first hop pub key
This commit is contained in:
committed by
Oliver Gugger
parent
c91753eda1
commit
ab036990b5
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user