Function or value | Description |
|
|
Full Usage:
ROUTE_MAX_LENGTH
Returns: int
|
|
Full Usage:
executeCommand state cmd
Parameters:
RouterState
cmd : RouterCommand
Returns: Result<seq<ChannelHop>, RouterError>
|
|
Full Usage:
findRoute g local target amount numRoutes extraE ignoredE ignoredV routeParams currentBlockHeight
Parameters:
DirectedLNGraph
local : NodeId
target : NodeId
amount : LNMoney
numRoutes : int
extraE : Set<GraphLabel>
ignoredE : Set<ChannelDesc>
ignoredV : Set<NodeId>
routeParams : RouteParams
currentBlockHeight : BlockHeight
Returns: Result<seq<ChannelHop>, RouterError>
|
Find a route in the graph between localNodeId and targetNodeId, returns the route. Will perform a k-shortest path selection given the @param numRoutes and randomly select one of the result
|
Full Usage:
getIgnoredChannelDesc channels ignoredNodes
Parameters:
Map<ShortChannelId, PublicChannel>
ignoredNodes : Set<NodeId>
Returns: seq<ChannelDesc>
|
This method is used after a payment failed, and we want to exclude some nodes that we know are failing
|