htlcswitch+routing: return IsHandled from AuxBandwidth
To make it more clear whether the external traffic shaper is handling a channel or not, we return an explicit boolean.
This commit is contained in:
5 files changed
+36
-14
No files matched your search
@@ -904,9 +904,7 @@ func (m *mockLink) AuxBandwidth(lnwire.MilliSatoshi, lnwire.ShortChannelID,
|
||||
fn.Option[tlv.Blob],
|
||||
htlcswitch.AuxTrafficShaper) fn.Result[htlcswitch.OptionalBandwidth] {
|
||||
|
||||
return fn.Ok[htlcswitch.OptionalBandwidth](
|
||||
fn.None[lnwire.MilliSatoshi](),
|
||||
)
|
||||
return fn.Ok(htlcswitch.OptionalBandwidth{})
|
||||
}
|
||||
|
||||
// EligibleToForward returns the mock's configured eligibility.
|
||||
|
||||
Reference in new issue
Block a user