pub trait Router {
    fn find_route<S: Score>(
        &self,
        payer: &PublicKey,
        route_params: &RouteParameters,
        payment_hash: &PaymentHash,
        first_hops: Option<&[&ChannelDetails]>,
        scorer: &S
    ) -> Result<Route, LightningError>; }
Expand description

A trait defining behavior for routing an Invoice payment.

Required Methods

Finds a Route between payer and payee for a payment with the given values.

Implementors