Package org.ldk.structs
Class CounterpartyForwardingInfo
- java.lang.Object
-
- org.ldk.structs.CounterpartyForwardingInfo
-
public class CounterpartyForwardingInfo extends Object
Information needed for constructing an invoice route hint for this channel.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CounterpartyForwardingInfo
clone()
Creates a copy of the CounterpartyForwardingInfoprotected void
finalize()
short
get_cltv_expiry_delta()
The minimum difference in cltv_expiry between an ingoing HTLC and its outgoing counterpart, such that the outgoing HTLC is forwardable to this counterparty.int
get_fee_base_msat()
Base routing fee in millisatoshis.int
get_fee_proportional_millionths()
Amount in millionths of a satoshi the channel will charge per transferred satoshi.static CounterpartyForwardingInfo
of(int fee_base_msat_arg, int fee_proportional_millionths_arg, short cltv_expiry_delta_arg)
Constructs a new CounterpartyForwardingInfo given each fieldstatic Result_CounterpartyForwardingInfoDecodeErrorZ
read(byte[] ser)
Read a CounterpartyForwardingInfo from a byte array, created by CounterpartyForwardingInfo_writevoid
set_cltv_expiry_delta(short val)
The minimum difference in cltv_expiry between an ingoing HTLC and its outgoing counterpart, such that the outgoing HTLC is forwardable to this counterparty.void
set_fee_base_msat(int val)
Base routing fee in millisatoshis.void
set_fee_proportional_millionths(int val)
Amount in millionths of a satoshi the channel will charge per transferred satoshi.byte[]
write()
Serialize the CounterpartyForwardingInfo object into a byte array which can be read by CounterpartyForwardingInfo_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_fee_base_msat
public int get_fee_base_msat()
Base routing fee in millisatoshis.
-
set_fee_base_msat
public void set_fee_base_msat(int val)
Base routing fee in millisatoshis.
-
get_fee_proportional_millionths
public int get_fee_proportional_millionths()
Amount in millionths of a satoshi the channel will charge per transferred satoshi.
-
set_fee_proportional_millionths
public void set_fee_proportional_millionths(int val)
Amount in millionths of a satoshi the channel will charge per transferred satoshi.
-
get_cltv_expiry_delta
public short get_cltv_expiry_delta()
The minimum difference in cltv_expiry between an ingoing HTLC and its outgoing counterpart, such that the outgoing HTLC is forwardable to this counterparty. See `msgs::ChannelUpdate`'s `cltv_expiry_delta` for more details.
-
set_cltv_expiry_delta
public void set_cltv_expiry_delta(short val)
The minimum difference in cltv_expiry between an ingoing HTLC and its outgoing counterpart, such that the outgoing HTLC is forwardable to this counterparty. See `msgs::ChannelUpdate`'s `cltv_expiry_delta` for more details.
-
of
public static CounterpartyForwardingInfo of(int fee_base_msat_arg, int fee_proportional_millionths_arg, short cltv_expiry_delta_arg)
Constructs a new CounterpartyForwardingInfo given each field
-
clone
public CounterpartyForwardingInfo clone()
Creates a copy of the CounterpartyForwardingInfo
-
write
public byte[] write()
Serialize the CounterpartyForwardingInfo object into a byte array which can be read by CounterpartyForwardingInfo_read
-
read
public static Result_CounterpartyForwardingInfoDecodeErrorZ read(byte[] ser)
Read a CounterpartyForwardingInfo from a byte array, created by CounterpartyForwardingInfo_write
-
-