Skip to main content

Module select

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.