routing: update TLV traffic shaper interface

This commit is contained in:
Oliver Gugger
2024-05-24 17:18:29 +02:00
parent 1404468299
commit b628483120
2 changed files with 9 additions and 15 deletions

View File

@@ -3,7 +3,6 @@ package routing
import (
"fmt"
"github.com/btcsuite/btcd/btcutil"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/fn"
"github.com/lightningnetwork/lnd/htlcswitch"
@@ -55,7 +54,8 @@ 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,
htlcBlob tlv.Blob) (btcutil.Amount, tlv.Blob, error)
htlcCustomRecords lnwire.CustomRecords) (lnwire.MilliSatoshi,
tlv.Blob, error)
}
// getLinkQuery is the function signature used to lookup a link.