Class DirectionalChannelInfo


  • public class DirectionalChannelInfo
    extends Object
    Details about one direction of a channel. Received within a channel update.
    • Method Detail

      • get_last_update

        public int get_last_update()
        When the last update to the channel direction was issued. Value is opaque, as set in the announcement.
      • set_last_update

        public void set_last_update​(int val)
        When the last update to the channel direction was issued. Value is opaque, as set in the announcement.
      • get_enabled

        public boolean get_enabled()
        Whether the channel can be currently used for payments (in this one direction).
      • set_enabled

        public void set_enabled​(boolean val)
        Whether the channel can be currently used for payments (in this one direction).
      • get_cltv_expiry_delta

        public short get_cltv_expiry_delta()
        The difference in CLTV values that you must have when routing through this channel.
      • set_cltv_expiry_delta

        public void set_cltv_expiry_delta​(short val)
        The difference in CLTV values that you must have when routing through this channel.
      • get_htlc_minimum_msat

        public long get_htlc_minimum_msat()
        The minimum value, which must be relayed to the next hop via the channel
      • set_htlc_minimum_msat

        public void set_htlc_minimum_msat​(long val)
        The minimum value, which must be relayed to the next hop via the channel
      • get_htlc_maximum_msat

        public Option_u64Z get_htlc_maximum_msat()
        The maximum value which may be relayed to the next hop via the channel.
      • set_htlc_maximum_msat

        public void set_htlc_maximum_msat​(Option_u64Z val)
        The maximum value which may be relayed to the next hop via the channel.
      • get_fees

        public RoutingFees get_fees()
        Fees charged when the channel is used for routing
      • set_fees

        public void set_fees​(RoutingFees val)
        Fees charged when the channel is used for routing
      • get_last_update_message

        @Nullable
        public ChannelUpdate get_last_update_message()
        Most recent update for the channel received from the network Mostly redundant with the data we store in fields explicitly. Everything else is useful only for sending out for initial routing sync. Not stored if contains excess data to prevent DoS. Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
      • set_last_update_message

        public void set_last_update_message​(@Nullable
                                            ChannelUpdate val)
        Most recent update for the channel received from the network Mostly redundant with the data we store in fields explicitly. Everything else is useful only for sending out for initial routing sync. Not stored if contains excess data to prevent DoS. Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
      • of

        public static DirectionalChannelInfo of​(int last_update_arg,
                                                boolean enabled_arg,
                                                short cltv_expiry_delta_arg,
                                                long htlc_minimum_msat_arg,
                                                Option_u64Z htlc_maximum_msat_arg,
                                                RoutingFees fees_arg,
                                                ChannelUpdate last_update_message_arg)
        Constructs a new DirectionalChannelInfo given each field
      • write

        public byte[] write()
        Serialize the DirectionalChannelInfo object into a byte array which can be read by DirectionalChannelInfo_read