Package org.ldk.structs
Class RouteHintHop
- java.lang.Object
-
- org.ldk.structs.RouteHintHop
-
public class RouteHintHop extends Object
A channel descriptor for a hop along a payment path.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteHintHop
clone()
Creates a copy of the RouteHintHopboolean
eq(RouteHintHop b)
Checks if two RouteHintHops contain equal inner contents.protected void
finalize()
short
get_cltv_expiry_delta()
The difference in CLTV values between this node and the next node.RoutingFees
get_fees()
The fees which must be paid to use this channelOption_u64Z
get_htlc_maximum_msat()
The maximum value in msat available for routing with a single HTLC.Option_u64Z
get_htlc_minimum_msat()
The minimum value, in msat, which must be relayed to the next hop.long
get_short_channel_id()
The short_channel_id of this channelbyte[]
get_src_node_id()
The node_id of the non-target end of the routelong
hash()
Checks if two RouteHintHops contain equal inner contents.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 fieldvoid
set_cltv_expiry_delta(short val)
The difference in CLTV values between this node and the next node.void
set_fees(RoutingFees val)
The fees which must be paid to use this channelvoid
set_htlc_maximum_msat(Option_u64Z val)
The maximum value in msat available for routing with a single HTLC.void
set_htlc_minimum_msat(Option_u64Z val)
The minimum value, in msat, which must be relayed to the next hop.void
set_short_channel_id(long val)
The short_channel_id of this channelvoid
set_src_node_id(byte[] val)
The node_id of the non-target end of the route
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
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
-
clone
public RouteHintHop clone()
Creates a copy of the RouteHintHop
-
hash
public long hash()
Checks if two RouteHintHops contain equal inner contents.
-
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.
-
-