Package org.ldk.structs
Class InFlightHtlcs
- java.lang.Object
-
- org.ldk.structs.InFlightHtlcs
-
public class InFlightHtlcs extends Object
A map with liquidity value (in msat) keyed by a short channel id and the direction the HTLC is traveling in. The direction boolean is determined by checking if the HTLC source's public key is less than its destination. See [`InFlightHtlcs::used_liquidity_msat`] for more details.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()static Result_InFlightHtlcsDecodeErrorZread(byte[] ser)Read a InFlightHtlcs from a byte array, created by InFlightHtlcs_writeOption_u64Zused_liquidity_msat(NodeId source, NodeId target, long channel_scid)Returns liquidity in msat given the public key of the HTLC source, target, and short channel id.byte[]write()Serialize the InFlightHtlcs object into a byte array which can be read by InFlightHtlcs_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
used_liquidity_msat
public Option_u64Z used_liquidity_msat(NodeId source, NodeId target, long channel_scid)
Returns liquidity in msat given the public key of the HTLC source, target, and short channel id.
-
write
public byte[] write()
Serialize the InFlightHtlcs object into a byte array which can be read by InFlightHtlcs_read
-
read
public static Result_InFlightHtlcsDecodeErrorZ read(byte[] ser)
Read a InFlightHtlcs from a byte array, created by InFlightHtlcs_write
-
-