@@ -14,6 +14,7 @@ import (
1414 "github.com/lightningnetwork/lnd/lnwallet/chainfee"
1515 "github.com/lightningnetwork/lnd/lnwire"
1616 "github.com/lightningnetwork/lnd/record"
17+ "github.com/lightningnetwork/lnd/routing/route"
1718 "github.com/lightningnetwork/lnd/tlv"
1819)
1920
@@ -495,8 +496,9 @@ type AuxHtlcModifier interface {
495496 // data blob of an HTLC, may produce a different blob or modify the
496497 // amount of bitcoin this htlc should carry.
497498 ProduceHtlcExtraData (totalAmount lnwire.MilliSatoshi ,
498- htlcCustomRecords lnwire.CustomRecords ) (lnwire.MilliSatoshi ,
499- lnwire.CustomRecords , error )
499+ htlcCustomRecords lnwire.CustomRecords ,
500+ peer route.Vertex ) (lnwire.MilliSatoshi , lnwire.CustomRecords ,
501+ error )
500502}
501503
502504// AuxTrafficShaper is an interface that allows the sender to determine if a
@@ -520,7 +522,8 @@ type AuxTrafficShaper interface {
520522 PaymentBandwidth (fundingBlob , htlcBlob ,
521523 commitmentBlob fn.Option [tlv.Blob ],
522524 linkBandwidth , htlcAmt lnwire.MilliSatoshi ,
523- htlcView lnwallet.AuxHtlcView ) (lnwire.MilliSatoshi , error )
525+ htlcView lnwallet.AuxHtlcView ,
526+ peer route.Vertex ) (lnwire.MilliSatoshi , error )
524527
525528 // IsCustomHTLC returns true if the HTLC carries the set of relevant
526529 // custom records to put it under the purview of the traffic shaper,
0 commit comments