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`] between `payer` and `payee` for a payment with the given values.
|
Result_RouteLightningErrorZ |
Router.RouterInterface.find_route(byte[] payer,
RouteParameters route_params,
ChannelDetails[] first_hops,
InFlightHtlcs inflight_htlcs) |
Finds a [`Route`] between `payer` and `payee` for a payment with the given values.
|
static Result_RouteLightningErrorZ |
UtilMethods.find_route(byte[] our_node_pubkey,
RouteParameters route_params,
NetworkGraph network_graph,
ChannelDetails[] first_hops,
Logger logger,
Score scorer,
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`] between `payer` and `payee` for a payment with the given values.
|
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`] between `payer` and `payee` for a payment with the given values.
|
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`], but will automatically find a route based on
`route_params` and retry failed payment paths based on `retry_strategy`.
|
Result_PaymentHashRetryableSendFailureZ |
ChannelManager.send_spontaneous_payment_with_retry(byte[] 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`.
|