Class 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 Detail

      • 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