Interface Router.RouterInterface

  • Enclosing class:
    Router

    public static interface Router.RouterInterface
    • Method Detail

      • find_route

        Result_RouteLightningErrorZ find_route​(byte[] payer,
                                               RouteParameters route_params,
                                               byte[] payment_hash,
                                               ChannelDetails[] first_hops,
                                               InFlightHtlcs inflight_htlcs)
        Finds a [`Route`] between `payer` and `payee` for a payment with the given values. Note that first_hops (or a relevant inner pointer) may be NULL or all-0s to represent None
      • notify_payment_path_failed

        void notify_payment_path_failed​(RouteHop[] path,
                                        long short_channel_id)
        Lets the router know that payment through a specific path has failed.
      • notify_payment_path_successful

        void notify_payment_path_successful​(RouteHop[] path)
        Lets the router know that payment through a specific path was successful.
      • notify_payment_probe_successful

        void notify_payment_probe_successful​(RouteHop[] path)
        Lets the router know that a payment probe was successful.
      • notify_payment_probe_failed

        void notify_payment_probe_failed​(RouteHop[] path,
                                         long short_channel_id)
        Lets the router know that a payment probe failed.