Class RouteHintHop


  • public class RouteHintHop
    extends Object
    A channel descriptor for a hop along a payment path.
    • Method Detail

      • get_src_node_id

        public byte[] get_src_node_id()
        The node_id of the non-target end of the route
      • set_src_node_id

        public void set_src_node_id​(byte[] val)
        The node_id of the non-target end of the route
      • get_short_channel_id

        public long get_short_channel_id()
        The short_channel_id of this channel
      • set_short_channel_id

        public void set_short_channel_id​(long val)
        The short_channel_id of this channel
      • get_fees

        public RoutingFees get_fees()
        The fees which must be paid to use this channel
      • set_fees

        public void set_fees​(RoutingFees val)
        The fees which must be paid to use this channel
      • get_cltv_expiry_delta

        public short get_cltv_expiry_delta()
        The difference in CLTV values between this node and the next node.
      • set_cltv_expiry_delta

        public void set_cltv_expiry_delta​(short val)
        The difference in CLTV values between this node and the next node.
      • get_htlc_minimum_msat

        public Option_u64Z get_htlc_minimum_msat()
        The minimum value, in msat, which must be relayed to the next hop.
      • set_htlc_minimum_msat

        public void set_htlc_minimum_msat​(Option_u64Z val)
        The minimum value, in msat, which must be relayed to the next hop.
      • get_htlc_maximum_msat

        public Option_u64Z get_htlc_maximum_msat()
        The maximum value in msat available for routing with a single HTLC.
      • set_htlc_maximum_msat

        public void set_htlc_maximum_msat​(Option_u64Z val)
        The maximum value in msat available for routing with a single HTLC.
      • of

        public static RouteHintHop of​(byte[] src_node_id_arg,
                                      long short_channel_id_arg,
                                      RoutingFees fees_arg,
                                      short cltv_expiry_delta_arg,
                                      Option_u64Z htlc_minimum_msat_arg,
                                      Option_u64Z htlc_maximum_msat_arg)
        Constructs a new RouteHintHop given each field
      • eq

        public boolean eq​(RouteHintHop b)
        Checks if two RouteHintHops contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.