Class UnsignedChannelAnnouncement


  • public class UnsignedChannelAnnouncement
    extends Object
    The unsigned part of a [`channel_announcement`] message. [`channel_announcement`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-channel_announcement-message
    • Method Detail

      • get_features

        public ChannelFeatures get_features()
        The advertised channel features
      • set_features

        public void set_features​(ChannelFeatures val)
        The advertised channel features
      • 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_node_id_1

        public NodeId get_node_id_1()
        One of the two `node_id`s which are endpoints of this channel
      • set_node_id_1

        public void set_node_id_1​(NodeId val)
        One of the two `node_id`s which are endpoints of this channel
      • get_node_id_2

        public NodeId get_node_id_2()
        The other of the two `node_id`s which are endpoints of this channel
      • set_node_id_2

        public void set_node_id_2​(NodeId val)
        The other of the two `node_id`s which are endpoints of this channel
      • get_bitcoin_key_1

        public NodeId get_bitcoin_key_1()
        The funding key for the first node
      • set_bitcoin_key_1

        public void set_bitcoin_key_1​(NodeId val)
        The funding key for the first node
      • get_bitcoin_key_2

        public NodeId get_bitcoin_key_2()
        The funding key for the second node
      • set_bitcoin_key_2

        public void set_bitcoin_key_2​(NodeId val)
        The funding key for the second node
      • eq

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