File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,16 @@ pub trait Payer {
270
270
///
271
271
/// [`Router`]: lightning::routing::router::Router
272
272
pub trait ScoringRouter : Router {
273
+ /// Finds a [`Route`] between `payer` and `payee` for a payment with the given values. Includes
274
+ /// `PaymentHash` and `PaymentId` in case the underlying implementation wants to look up a
275
+ /// precomputed route for probing.
276
+ fn find_route_with_id (
277
+ & self , payer : & PublicKey , route_params : & RouteParameters ,
278
+ first_hops : Option < & [ & ChannelDetails ] > , inflight_htlcs : InFlightHtlcs ,
279
+ _payment_hash : PaymentHash , _payment_id : PaymentId
280
+ ) -> Result < Route , LightningError > {
281
+ self . find_route ( payer, route_params, first_hops, inflight_htlcs)
282
+ }
273
283
/// Lets the router know that payment through a specific path has failed.
274
284
fn notify_payment_path_failed ( & self , path : & [ & RouteHop ] , short_channel_id : u64 ) ;
275
285
/// Lets the router know that payment through a specific path was successful.
You can’t perform that action at this time.
0 commit comments