Class ChannelReady


  • public class ChannelReady
    extends Object
    A [`channel_ready`] message to be sent to or received from a peer. [`channel_ready`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-channel_ready-message
    • 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
      • eq

        public boolean eq​(ChannelReady b)
        Checks if two ChannelReadys contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
      • write

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