Module select

Source
Expand description

Logic for filtering and selecting channels in order to find suitable channels for a target.

Enums§

Choice 🔒
Similar to Ordering, but is easier to reason about when comparing two objects that don’t have a numeric sense of ordering (ex: returning Greater is confusing if the ordering isn’t numeric).

Functions§

choose_best_channel 🔒
Returns the best channel for target.
open_channel_is_allowed 🔒
Returns true if the open channel is allowed to be used for a new channel request to the target.
pending_channel_maybe_allowed 🔒
Returns true if the pending channel could possibly be used for a new channel request to the target. You still need to verify the final built channel with open_channel_is_allowed before using it.