Expand description

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

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

Structs

The recipient of a payment.

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

Parameters needed to find a Route.

Constants

Maximum number of paths we allow an MPP payment to have.

Maximum total CTLV difference we allow for a full payment path.

Functions

Construct a route from us (payer) to the target node (payee) via the given hops (which should exclude the payer, but include the payee). This may be useful, e.g., for probing the chosen path.

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