Class ChannelReestablish


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

        public long get_next_local_commitment_number()
        The next commitment number for the sender
      • set_next_local_commitment_number

        public void set_next_local_commitment_number​(long val)
        The next commitment number for the sender
      • get_next_remote_commitment_number

        public long get_next_remote_commitment_number()
        The next commitment number for the recipient
      • set_next_remote_commitment_number

        public void set_next_remote_commitment_number​(long val)
        The next commitment number for the recipient
      • eq

        public boolean eq​(ChannelReestablish b)
        Checks if two ChannelReestablishs 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 ChannelReestablish object into a byte array which can be read by ChannelReestablish_read