@@ -12,7 +12,6 @@ import (
12
12
"github.com/lightninglabs/taproot-assets/rfqmsg"
13
13
cmsg "github.com/lightninglabs/taproot-assets/tapchannelmsg"
14
14
lfn "github.com/lightningnetwork/lnd/fn"
15
- "github.com/lightningnetwork/lnd/htlcswitch"
16
15
"github.com/lightningnetwork/lnd/lnwire"
17
16
"github.com/lightningnetwork/lnd/tlv"
18
17
)
@@ -72,10 +71,6 @@ func (s *AuxTrafficShaper) Stop() error {
72
71
return stopErr
73
72
}
74
73
75
- // A compile-time check to ensure that AuxTrafficShaper fully implements the
76
- // htlcswitch.AuxTrafficShaper interface.
77
- var _ htlcswitch.AuxTrafficShaper = (* AuxTrafficShaper )(nil )
78
-
79
74
// ShouldHandleTraffic is called in order to check if the channel identified by
80
75
// the provided channel ID is handled by the traffic shaper implementation. If
81
76
// it is handled by the traffic shaper, then the normal bandwidth calculation
@@ -326,10 +321,3 @@ func (s *AuxTrafficShaper) ProduceHtlcExtraData(totalAmount lnwire.MilliSatoshi,
326
321
327
322
return htlcAmountMSat , updatedRecords , nil
328
323
}
329
-
330
- // IsCustomHTLC returns true if the HTLC carries the set of relevant custom
331
- // records to put it under the purview of the traffic shaper, meaning that it's
332
- // from a custom channel.
333
- func (s * AuxTrafficShaper ) IsCustomHTLC (htlcRecords lnwire.CustomRecords ) bool {
334
- return rfqmsg .HasAssetHTLCCustomRecords (htlcRecords )
335
- }
0 commit comments