Trait lightning_invoice::payment::Router[][src]

pub trait Router<S: Score> {
    fn find_route(
        &self,
        payer: &PublicKey,
        params: &RouteParameters,
        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