Module lightning::routing::router[][src]

Expand description

The top-level routing/network map tracking logic lives here.

You probably want to create a NetGraphMsgHandler and use that as your RoutingMessageHandler and then interrogate it to get routes for your own payments.

Structs

A route directs a payment from the sender (us) to the recipient. If the recipient supports MPP, it can take multiple paths. Each path is composed of one or more hops through the network.

A list of hops along a payment path terminating with a channel to the recipient.

A channel descriptor for a hop along a payment path.

A hop in a route

Functions

Gets a keysend route from us (payer) to the given target node (payee). This is needed because keysend payments do not have an invoice from which to pull the payee’s supported features, which makes it tricky to otherwise supply the payee_features parameter of get_route.

Gets a route from us (payer) to the given target node (payee).