Class ChannelFeatures


  • public class ChannelFeatures
    extends Object
    Features used within a `channel_announcement` message.
    • Method Detail

      • eq

        public boolean eq​(ChannelFeatures b)
        Checks if two ChannelFeaturess 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.
      • empty

        public static ChannelFeatures empty()
        Create a blank Features with no features set
      • requires_unknown_bits

        public boolean requires_unknown_bits()
        Returns true if this `Features` object contains unknown feature flags which are set as \"required\".
      • write

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