Class UnsignedChannelUpdate


  • public class UnsignedChannelUpdate
    extends Object
    The unsigned part of a channel_update
    • Method Detail

      • get_chain_hash

        public byte[] get_chain_hash()
        The genesis hash of the blockchain where the channel is to be opened
      • set_chain_hash

        public void set_chain_hash​(byte[] val)
        The genesis hash of the blockchain where the channel is to be opened
      • get_short_channel_id

        public long get_short_channel_id()
        The short channel ID
      • set_short_channel_id

        public void set_short_channel_id​(long val)
        The short channel ID
      • get_timestamp

        public int get_timestamp()
        A strictly monotonic announcement counter, with gaps allowed, specific to this channel
      • set_timestamp

        public void set_timestamp​(int val)
        A strictly monotonic announcement counter, with gaps allowed, specific to this channel
      • get_flags

        public byte get_flags()
        Channel flags
      • set_flags

        public void set_flags​(byte val)
        Channel flags
      • get_cltv_expiry_delta

        public short get_cltv_expiry_delta()
        The number of blocks such that if: `incoming_htlc.cltv_expiry < outgoing_htlc.cltv_expiry + cltv_expiry_delta` then we need to fail the HTLC backwards. When forwarding an HTLC, cltv_expiry_delta determines the outgoing HTLC's minimum cltv_expiry value -- so, if an incoming HTLC comes in with a cltv_expiry of 100000, and the node we're forwarding to has a cltv_expiry_delta value of 10, then we'll check that the outgoing HTLC's cltv_expiry value is at least 100010 before forwarding. Note that the HTLC sender is the one who originally sets this value when constructing the route.
      • set_cltv_expiry_delta

        public void set_cltv_expiry_delta​(short val)
        The number of blocks such that if: `incoming_htlc.cltv_expiry < outgoing_htlc.cltv_expiry + cltv_expiry_delta` then we need to fail the HTLC backwards. When forwarding an HTLC, cltv_expiry_delta determines the outgoing HTLC's minimum cltv_expiry value -- so, if an incoming HTLC comes in with a cltv_expiry of 100000, and the node we're forwarding to has a cltv_expiry_delta value of 10, then we'll check that the outgoing HTLC's cltv_expiry value is at least 100010 before forwarding. Note that the HTLC sender is the one who originally sets this value when constructing the route.
      • get_htlc_minimum_msat

        public long get_htlc_minimum_msat()
        The minimum HTLC size incoming to sender, in milli-satoshi
      • set_htlc_minimum_msat

        public void set_htlc_minimum_msat​(long val)
        The minimum HTLC size incoming to sender, in milli-satoshi
      • get_fee_base_msat

        public int get_fee_base_msat()
        The base HTLC fee charged by sender, in milli-satoshi
      • set_fee_base_msat

        public void set_fee_base_msat​(int val)
        The base HTLC fee charged by sender, in milli-satoshi
      • get_fee_proportional_millionths

        public int get_fee_proportional_millionths()
        The amount to fee multiplier, in micro-satoshi
      • set_fee_proportional_millionths

        public void set_fee_proportional_millionths​(int val)
        The amount to fee multiplier, in micro-satoshi
      • write

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