static Result_RouteLightningErrorZ |
UtilMethods.build_route_from_hops(byte[] our_node_pubkey,
byte[][] hops,
RouteParameters route_params,
NetworkGraph network_graph,
Logger logger,
byte[] random_seed_bytes) |
Construct a route from us (payer) to the target node (payee) via the given hops (which should
exclude the payer, but include the payee).
|
boolean |
RouteParameters.eq(RouteParameters b) |
Checks if two RouteParameterss contain equal inner contents.
|
Result_RouteLightningErrorZ |
Router.find_route(byte[] payer,
RouteParameters route_params,
ChannelDetails[] first_hops,
InFlightHtlcs inflight_htlcs) |
Finds a [`Route`] for a payment between the given `payer` and a payee.
|
Result_RouteLightningErrorZ |
Router.RouterInterface.find_route(byte[] payer,
RouteParameters route_params,
ChannelDetails[] first_hops,
InFlightHtlcs inflight_htlcs) |
Finds a [`Route`] for a payment between the given `payer` and a payee.
|
static Result_RouteLightningErrorZ |
UtilMethods.find_route(byte[] our_node_pubkey,
RouteParameters route_params,
NetworkGraph network_graph,
ChannelDetails[] first_hops,
Logger logger,
ScoreLookUp scorer,
ProbabilisticScoringFeeParameters score_params,
byte[] random_seed_bytes) |
Finds a route from us (payer) to the given target node (payee).
|
Result_RouteLightningErrorZ |
Router.find_route_with_id(byte[] payer,
RouteParameters route_params,
ChannelDetails[] first_hops,
InFlightHtlcs inflight_htlcs,
byte[] _payment_hash,
byte[] _payment_id) |
Finds a [`Route`] for a payment between the given `payer` and a payee.
|
Result_RouteLightningErrorZ |
Router.RouterInterface.find_route_with_id(byte[] payer,
RouteParameters route_params,
ChannelDetails[] first_hops,
InFlightHtlcs inflight_htlcs,
byte[] _payment_hash,
byte[] _payment_id) |
Finds a [`Route`] for a payment between the given `payer` and a payee.
|
static Route |
Route.of(Path[] paths_arg,
RouteParameters route_params_arg) |
Constructs a new Route given each field
Note that route_params_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
|
static Result_RouteParametersDecodeErrorZ |
Result_RouteParametersDecodeErrorZ.ok(RouteParameters o) |
Creates a new CResult_RouteParametersDecodeErrorZ in the success state.
|
static PaymentSendFailure |
PaymentSendFailure.partial_failure(Result_NoneAPIErrorZ[] results,
RouteParameters failed_paths_retry,
byte[] payment_id) |
Utility method to constructs a new PartialFailure-variant PaymentSendFailure
|
Result_NoneRetryableSendFailureZ |
ChannelManager.send_payment(byte[] payment_hash,
RecipientOnionFields recipient_onion,
byte[] payment_id,
RouteParameters route_params,
Retry retry_strategy) |
Similar to [`ChannelManager::send_payment_with_route`], but will automatically find a route based on
`route_params` and retry failed payment paths based on `retry_strategy`.
|
Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ |
ChannelManager.send_preflight_probes(RouteParameters route_params,
Option_u64Z liquidity_limit_multiplier) |
Sends payment probes over all paths of a route that would be used to pay a route found
according to the given [`RouteParameters`].
|
Result_ThirtyTwoBytesRetryableSendFailureZ |
ChannelManager.send_spontaneous_payment_with_retry(Option_ThirtyTwoBytesZ payment_preimage,
RecipientOnionFields recipient_onion,
byte[] payment_id,
RouteParameters route_params,
Retry retry_strategy) |
Similar to [`ChannelManager::send_spontaneous_payment`], but will automatically find a route
based on `route_params` and retry failed payment paths based on `retry_strategy`.
|
void |
Route.set_route_params(RouteParameters val) |
The `route_params` parameter passed to [`find_route`].
|