multi: move routing.TlvTrafficShaper => htlcswitch.AuxTrafficShaper
With this commit we move the traffic shaper definition from the routing package to the HTLC switch package as a preparation for being able to use it there as well. At the same time we rename it to AuxTrafficShaper to be more in line with the other auxiliary components.
This commit is contained in:
12 files changed
+167
-99
No files matched your search
@@ -968,6 +968,17 @@ func (f *mockChannelLink) CommitmentCustomBlob() fn.Option[tlv.Blob] {
|
||||
return fn.None[tlv.Blob]()
|
||||
}
|
||||
|
||||
// AuxBandwidth returns the bandwidth that can be used for a channel,
|
||||
// expressed in milli-satoshi. This might be different from the regular
|
||||
// BTC bandwidth for custom channels. This will always return fn.None()
|
||||
// for a regular (non-custom) channel.
|
||||
func (f *mockChannelLink) AuxBandwidth(lnwire.MilliSatoshi,
|
||||
lnwire.ShortChannelID,
|
||||
fn.Option[tlv.Blob], AuxTrafficShaper) fn.Result[OptionalBandwidth] {
|
||||
|
||||
return fn.Ok(fn.None[lnwire.MilliSatoshi]())
|
||||
}
|
||||
|
||||
var _ ChannelLink = (*mockChannelLink)(nil)
|
||||
|
||||
const testInvoiceCltvExpiry = 6
|
||||
|
||||
Reference in new issue
Block a user