Package org.ldk.structs
Class InitFeatures
- java.lang.Object
-
- org.ldk.structs.InitFeatures
-
public class InitFeatures extends Object
Features used within an `init` message.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InitFeatures
clone()
Creates a copy of the InitFeaturesstatic InitFeatures
empty()
Create a blank Features with no features setboolean
eq(InitFeatures b)
Checks if two InitFeaturess contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
boolean
initial_routing_sync()
Checks if this feature is supported.static Result_InitFeaturesDecodeErrorZ
read(byte[] ser)
Read a InitFeatures from a byte array, created by InitFeatures_writeboolean
requires_anchors_zero_fee_htlc_tx()
Checks if this feature is required.boolean
requires_basic_mpp()
Checks if this feature is required.boolean
requires_channel_type()
Checks if this feature is required.boolean
requires_data_loss_protect()
Checks if this feature is required.boolean
requires_gossip_queries()
Checks if this feature is required.boolean
requires_onion_messages()
Checks if this feature is required.boolean
requires_payment_secret()
Checks if this feature is required.boolean
requires_scid_privacy()
Checks if this feature is required.boolean
requires_shutdown_anysegwit()
Checks if this feature is required.boolean
requires_static_remote_key()
Checks if this feature is required.boolean
requires_unknown_bits()
Returns true if this `Features` object contains unknown feature flags which are set as \"required\".boolean
requires_upfront_shutdown_script()
Checks if this feature is required.boolean
requires_variable_length_onion()
Checks if this feature is required.boolean
requires_wumbo()
Checks if this feature is required.boolean
requires_zero_conf()
Checks if this feature is required.void
set_anchors_zero_fee_htlc_tx_optional()
Set this feature as optional.void
set_anchors_zero_fee_htlc_tx_required()
Set this feature as required.void
set_basic_mpp_optional()
Set this feature as optional.void
set_basic_mpp_required()
Set this feature as required.void
set_channel_type_optional()
Set this feature as optional.void
set_channel_type_required()
Set this feature as required.void
set_data_loss_protect_optional()
Set this feature as optional.void
set_data_loss_protect_required()
Set this feature as required.void
set_gossip_queries_optional()
Set this feature as optional.void
set_gossip_queries_required()
Set this feature as required.void
set_initial_routing_sync_optional()
Set this feature as optional.void
set_initial_routing_sync_required()
Set this feature as required.void
set_onion_messages_optional()
Set this feature as optional.void
set_onion_messages_required()
Set this feature as required.void
set_payment_secret_optional()
Set this feature as optional.void
set_payment_secret_required()
Set this feature as required.void
set_scid_privacy_optional()
Set this feature as optional.void
set_scid_privacy_required()
Set this feature as required.void
set_shutdown_any_segwit_optional()
Set this feature as optional.void
set_shutdown_any_segwit_required()
Set this feature as required.void
set_static_remote_key_optional()
Set this feature as optional.void
set_static_remote_key_required()
Set this feature as required.void
set_upfront_shutdown_script_optional()
Set this feature as optional.void
set_upfront_shutdown_script_required()
Set this feature as required.void
set_variable_length_onion_optional()
Set this feature as optional.void
set_variable_length_onion_required()
Set this feature as required.void
set_wumbo_optional()
Set this feature as optional.void
set_wumbo_required()
Set this feature as required.void
set_zero_conf_optional()
Set this feature as optional.void
set_zero_conf_required()
Set this feature as required.boolean
supports_anchors_zero_fee_htlc_tx()
Checks if this feature is supported.boolean
supports_basic_mpp()
Checks if this feature is supported.boolean
supports_channel_type()
Checks if this feature is supported.boolean
supports_data_loss_protect()
Checks if this feature is supported.boolean
supports_gossip_queries()
Checks if this feature is supported.boolean
supports_onion_messages()
Checks if this feature is supported.boolean
supports_payment_secret()
Checks if this feature is supported.boolean
supports_scid_privacy()
Checks if this feature is supported.boolean
supports_shutdown_anysegwit()
Checks if this feature is supported.boolean
supports_static_remote_key()
Checks if this feature is supported.boolean
supports_upfront_shutdown_script()
Checks if this feature is supported.boolean
supports_variable_length_onion()
Checks if this feature is supported.boolean
supports_wumbo()
Checks if this feature is supported.boolean
supports_zero_conf()
Checks if this feature is supported.byte[]
write()
Serialize the InitFeatures object into a byte array which can be read by InitFeatures_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
eq
public boolean eq(InitFeatures b)
Checks if two InitFeaturess 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.
-
clone
public InitFeatures clone()
Creates a copy of the InitFeatures
-
empty
public static InitFeatures 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 InitFeatures object into a byte array which can be read by InitFeatures_read
-
read
public static Result_InitFeaturesDecodeErrorZ read(byte[] ser)
Read a InitFeatures from a byte array, created by InitFeatures_write
-
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_initial_routing_sync_optional
public void set_initial_routing_sync_optional()
Set this feature as optional.
-
set_initial_routing_sync_required
public void set_initial_routing_sync_required()
Set this feature as required.
-
initial_routing_sync
public boolean initial_routing_sync()
Checks if this feature is supported.
-
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.
-
-