Class ChannelReady


  • public class ChannelReady
    extends Object
    A channel_ready message to be sent or received from a peer
    • Method Detail

      • get_channel_id

        public byte[] get_channel_id()
        The channel ID
      • set_channel_id

        public void set_channel_id​(byte[] val)
        The channel ID
      • get_next_per_commitment_point

        public byte[] get_next_per_commitment_point()
        The per-commitment point of the second commitment transaction
      • set_next_per_commitment_point

        public void set_next_per_commitment_point​(byte[] val)
        The per-commitment point of the second commitment transaction
      • get_short_channel_id_alias

        public Option_u64Z get_short_channel_id_alias()
        If set, provides a short_channel_id alias for this channel. The sender will accept payments to be forwarded over this SCID and forward them to this messages' recipient.
      • set_short_channel_id_alias

        public void set_short_channel_id_alias​(Option_u64Z val)
        If set, provides a short_channel_id alias for this channel. The sender will accept payments to be forwarded over this SCID and forward them to this messages' recipient.
      • of

        public static ChannelReady of​(byte[] channel_id_arg,
                                      byte[] next_per_commitment_point_arg,
                                      Option_u64Z short_channel_id_alias_arg)
        Constructs a new ChannelReady given each field
      • write

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