Class ReplyShortChannelIdsEnd


  • public class ReplyShortChannelIdsEnd
    extends Object
    A [`reply_short_channel_ids_end`] message is sent as a reply to a message. The query recipient makes a best effort to respond based on their local network view which may not be a perfect view of the network. [`reply_short_channel_ids_end`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-query_short_channel_idsreply_short_channel_ids_end-messages
    • Method Detail

      • get_chain_hash

        public byte[] get_chain_hash()
        The genesis hash of the blockchain that was queried
      • set_chain_hash

        public void set_chain_hash​(byte[] val)
        The genesis hash of the blockchain that was queried
      • get_full_information

        public boolean get_full_information()
        Indicates if the query recipient maintains up-to-date channel information for the `chain_hash`
      • set_full_information

        public void set_full_information​(boolean val)
        Indicates if the query recipient maintains up-to-date channel information for the `chain_hash`
      • of

        public static ReplyShortChannelIdsEnd of​(byte[] chain_hash_arg,
                                                 boolean full_information_arg)
        Constructs a new ReplyShortChannelIdsEnd given each field
      • eq

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