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: returningGreateris confusing if the ordering isnโt numeric).
Functionsยง
- choose_
best_ ๐channel - Returns the best channel for
target. - open_
channel_ ๐is_ allowed - Returns
trueif the open channel is allowed to be used for a new channel request to the target. - pending_
channel_ ๐maybe_ allowed - Returns
trueif the pending channel could possibly be used for a new channel request to the target. You still need to verify the final built channel withopen_channel_is_allowedbefore using it.