You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generalize find_route to take RouteParameters (#32)
The previous find_route(payee, amount_msat, params) signature built
PaymentParameters::from_node_id internally, throwing away the private
route hints carried in BOLT11 invoices and the blinded payment paths
carried in BOLT12 invoices. The underlying router handles both shapes
fine; the API was hiding them.
Callers now build RouteParameters themselves with the appropriate
PaymentParameters::from_* constructor and pass it in. The node-wide
RouteParametersConfig is no longer overlaid implicitly. Different
destination shapes want different caps, and overlaying the clear-
pubkey defaults onto invoice-derived params would clobber the hint
and blinded-path data the new API is meant to preserve.
PaymentParameters and RouteParameters are re-exported from
lightning::routing::router so callers do not pull in rust-lightning
directly.
0 commit comments