Class NodeFeatures


  • public class NodeFeatures
    extends Object
    Features used within a `node_announcement` message.
    • Method Detail

      • eq

        public boolean eq​(NodeFeatures b)
        Checks if two NodeFeaturess 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 NodeFeatures 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 NodeFeatures object into a byte array which can be read by NodeFeatures_read
      • set_data_loss_protect_optional

        public void set_data_loss_protect_optional()
        Set this feature as optional.
      • set_data_loss_protect_required

        public void set_data_loss_protect_required()
        Set this feature as required.
      • supports_data_loss_protect

        public boolean supports_data_loss_protect()
        Checks if this feature is supported.
      • requires_data_loss_protect

        public boolean requires_data_loss_protect()
        Checks if this feature is required.
      • set_upfront_shutdown_script_optional

        public void set_upfront_shutdown_script_optional()
        Set this feature as optional.
      • set_upfront_shutdown_script_required

        public void set_upfront_shutdown_script_required()
        Set this feature as required.
      • supports_upfront_shutdown_script

        public boolean supports_upfront_shutdown_script()
        Checks if this feature is supported.
      • requires_upfront_shutdown_script

        public boolean requires_upfront_shutdown_script()
        Checks if this feature is required.
      • set_gossip_queries_optional

        public void set_gossip_queries_optional()
        Set this feature as optional.
      • set_gossip_queries_required

        public void set_gossip_queries_required()
        Set this feature as required.
      • supports_gossip_queries

        public boolean supports_gossip_queries()
        Checks if this feature is supported.
      • requires_gossip_queries

        public boolean requires_gossip_queries()
        Checks if this feature is required.
      • set_variable_length_onion_optional

        public void set_variable_length_onion_optional()
        Set this feature as optional.
      • set_variable_length_onion_required

        public void set_variable_length_onion_required()
        Set this feature as required.
      • supports_variable_length_onion

        public boolean supports_variable_length_onion()
        Checks if this feature is supported.
      • requires_variable_length_onion

        public boolean requires_variable_length_onion()
        Checks if this feature is required.
      • set_static_remote_key_optional

        public void set_static_remote_key_optional()
        Set this feature as optional.
      • set_static_remote_key_required

        public void set_static_remote_key_required()
        Set this feature as required.
      • supports_static_remote_key

        public boolean supports_static_remote_key()
        Checks if this feature is supported.
      • requires_static_remote_key

        public boolean requires_static_remote_key()
        Checks if this feature is required.
      • set_payment_secret_optional

        public void set_payment_secret_optional()
        Set this feature as optional.
      • set_payment_secret_required

        public void set_payment_secret_required()
        Set this feature as required.
      • supports_payment_secret

        public boolean supports_payment_secret()
        Checks if this feature is supported.
      • requires_payment_secret

        public boolean requires_payment_secret()
        Checks if this feature is required.
      • set_basic_mpp_optional

        public void set_basic_mpp_optional()
        Set this feature as optional.
      • set_basic_mpp_required

        public void set_basic_mpp_required()
        Set this feature as required.
      • supports_basic_mpp

        public boolean supports_basic_mpp()
        Checks if this feature is supported.
      • requires_basic_mpp

        public boolean requires_basic_mpp()
        Checks if this feature is required.
      • set_wumbo_optional

        public void set_wumbo_optional()
        Set this feature as optional.
      • set_wumbo_required

        public void set_wumbo_required()
        Set this feature as required.
      • supports_wumbo

        public boolean supports_wumbo()
        Checks if this feature is supported.
      • requires_wumbo

        public boolean requires_wumbo()
        Checks if this feature is required.
      • set_anchors_zero_fee_htlc_tx_optional

        public void set_anchors_zero_fee_htlc_tx_optional()
        Set this feature as optional.
      • set_anchors_zero_fee_htlc_tx_required

        public void set_anchors_zero_fee_htlc_tx_required()
        Set this feature as required.
      • supports_anchors_zero_fee_htlc_tx

        public boolean supports_anchors_zero_fee_htlc_tx()
        Checks if this feature is supported.
      • requires_anchors_zero_fee_htlc_tx

        public boolean requires_anchors_zero_fee_htlc_tx()
        Checks if this feature is required.
      • set_shutdown_any_segwit_optional

        public void set_shutdown_any_segwit_optional()
        Set this feature as optional.
      • set_shutdown_any_segwit_required

        public void set_shutdown_any_segwit_required()
        Set this feature as required.
      • supports_shutdown_anysegwit

        public boolean supports_shutdown_anysegwit()
        Checks if this feature is supported.
      • requires_shutdown_anysegwit

        public boolean requires_shutdown_anysegwit()
        Checks if this feature is required.
      • set_onion_messages_optional

        public void set_onion_messages_optional()
        Set this feature as optional.
      • set_onion_messages_required

        public void set_onion_messages_required()
        Set this feature as required.
      • supports_onion_messages

        public boolean supports_onion_messages()
        Checks if this feature is supported.
      • requires_onion_messages

        public boolean requires_onion_messages()
        Checks if this feature is required.
      • set_channel_type_optional

        public void set_channel_type_optional()
        Set this feature as optional.
      • set_channel_type_required

        public void set_channel_type_required()
        Set this feature as required.
      • supports_channel_type

        public boolean supports_channel_type()
        Checks if this feature is supported.
      • requires_channel_type

        public boolean requires_channel_type()
        Checks if this feature is required.
      • set_scid_privacy_optional

        public void set_scid_privacy_optional()
        Set this feature as optional.
      • set_scid_privacy_required

        public void set_scid_privacy_required()
        Set this feature as required.
      • supports_scid_privacy

        public boolean supports_scid_privacy()
        Checks if this feature is supported.
      • requires_scid_privacy

        public boolean requires_scid_privacy()
        Checks if this feature is required.
      • set_zero_conf_optional

        public void set_zero_conf_optional()
        Set this feature as optional.
      • set_zero_conf_required

        public void set_zero_conf_required()
        Set this feature as required.
      • supports_zero_conf

        public boolean supports_zero_conf()
        Checks if this feature is supported.
      • requires_zero_conf

        public boolean requires_zero_conf()
        Checks if this feature is required.
      • set_keysend_optional

        public void set_keysend_optional()
        Set this feature as optional.
      • set_keysend_required

        public void set_keysend_required()
        Set this feature as required.
      • supports_keysend

        public boolean supports_keysend()
        Checks if this feature is supported.
      • requires_keysend

        public boolean requires_keysend()
        Checks if this feature is required.