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 InitFeaturesclone()Creates a copy of the InitFeaturesstatic InitFeaturesempty()Create a blank Features with no features setbooleaneq(InitFeatures b)Checks if two InitFeaturess contain equal inner contents.booleanequals(Object o)protected voidfinalize()booleaninitial_routing_sync()Checks if this feature is supported.static InitFeaturesknown()Creates a Features with the bits set which are known by the implementationstatic Result_InitFeaturesDecodeErrorZread(byte[] ser)Read a InitFeatures from a byte array, created by InitFeatures_writebooleanrequires_basic_mpp()Checks if this feature is required.booleanrequires_channel_type()Checks if this feature is required.booleanrequires_data_loss_protect()Checks if this feature is required.booleanrequires_gossip_queries()Checks if this feature is required.booleanrequires_payment_secret()Checks if this feature is required.booleanrequires_scid_privacy()Checks if this feature is required.booleanrequires_shutdown_anysegwit()Checks if this feature is required.booleanrequires_static_remote_key()Checks if this feature is required.booleanrequires_unknown_bits()Returns true if this `Features` object contains unknown feature flags which are set as \"required\".booleanrequires_upfront_shutdown_script()Checks if this feature is required.booleanrequires_variable_length_onion()Checks if this feature is required.booleanrequires_wumbo()Checks if this feature is required.booleanrequires_zero_conf()Checks if this feature is required.voidset_basic_mpp_optional()Set this feature as optional.voidset_basic_mpp_required()Set this feature as required.voidset_channel_type_optional()Set this feature as optional.voidset_channel_type_required()Set this feature as required.voidset_data_loss_protect_optional()Set this feature as optional.voidset_data_loss_protect_required()Set this feature as required.voidset_gossip_queries_optional()Set this feature as optional.voidset_gossip_queries_required()Set this feature as required.voidset_initial_routing_sync_optional()Set this feature as optional.voidset_initial_routing_sync_required()Set this feature as required.voidset_payment_secret_optional()Set this feature as optional.voidset_payment_secret_required()Set this feature as required.voidset_scid_privacy_optional()Set this feature as optional.voidset_scid_privacy_required()Set this feature as required.voidset_shutdown_any_segwit_optional()Set this feature as optional.voidset_shutdown_any_segwit_required()Set this feature as required.voidset_static_remote_key_optional()Set this feature as optional.voidset_static_remote_key_required()Set this feature as required.voidset_upfront_shutdown_script_optional()Set this feature as optional.voidset_upfront_shutdown_script_required()Set this feature as required.voidset_variable_length_onion_optional()Set this feature as optional.voidset_variable_length_onion_required()Set this feature as required.voidset_wumbo_optional()Set this feature as optional.voidset_wumbo_required()Set this feature as required.voidset_zero_conf_optional()Set this feature as optional.voidset_zero_conf_required()Set this feature as required.booleansupports_basic_mpp()Checks if this feature is supported.booleansupports_channel_type()Checks if this feature is supported.booleansupports_data_loss_protect()Checks if this feature is supported.booleansupports_gossip_queries()Checks if this feature is supported.booleansupports_payment_secret()Checks if this feature is supported.booleansupports_scid_privacy()Checks if this feature is supported.booleansupports_shutdown_anysegwit()Checks if this feature is supported.booleansupports_static_remote_key()Checks if this feature is supported.booleansupports_upfront_shutdown_script()Checks if this feature is supported.booleansupports_variable_length_onion()Checks if this feature is supported.booleansupports_wumbo()Checks if this feature is supported.booleansupports_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
-
known
public static InitFeatures known()
Creates a Features with the bits set which are known by the implementation
-
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_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_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.
-
-