- "Feature flags for `option_upfront_shutdown_script`.");
- define_feature!(9, VariableLengthOnion, [InitContext, NodeContext],
- "Feature flags for `var_onion_optin`.");
- define_feature!(15, PaymentSecret, [InitContext, NodeContext],
- "Feature flags for `payment_secret`.");
- define_feature!(17, BasicMPP, [InitContext, NodeContext],
- "Feature flags for `basic_mpp`.");
+ "Feature flags for `option_upfront_shutdown_script`.", set_upfront_shutdown_script_optional,
+ set_upfront_shutdown_script_required);
+ define_feature!(7, GossipQueries, [InitContext, NodeContext],
+ "Feature flags for `gossip_queries`.", set_gossip_queries_optional, set_gossip_queries_required);
+ define_feature!(9, VariableLengthOnion, [InitContext, NodeContext, InvoiceContext],
+ "Feature flags for `var_onion_optin`.", set_variable_length_onion_optional,
+ set_variable_length_onion_required);
+ define_feature!(13, StaticRemoteKey, [InitContext, NodeContext],
+ "Feature flags for `option_static_remotekey`.", set_static_remote_key_optional,
+ set_static_remote_key_required);
+ define_feature!(15, PaymentSecret, [InitContext, NodeContext, InvoiceContext],
+ "Feature flags for `payment_secret`.", set_payment_secret_optional, set_payment_secret_required);
+ define_feature!(17, BasicMPP, [InitContext, NodeContext, InvoiceContext],
+ "Feature flags for `basic_mpp`.", set_basic_mpp_optional, set_basic_mpp_required);
+ define_feature!(27, ShutdownAnySegwit, [InitContext, NodeContext],
+ "Feature flags for `opt_shutdown_anysegwit`.", set_shutdown_any_segwit_optional,
+ set_shutdown_any_segwit_required);
+
+ #[cfg(test)]
+ define_context!(TestingContext {
+ required_features: [
+ // Byte 0
+ ,
+ // Byte 1
+ ,
+ // Byte 2
+ UnknownFeature,
+ ],
+ optional_features: [
+ // Byte 0
+ ,
+ // Byte 1
+ ,
+ // Byte 2
+ ,
+ ],
+ });
+
+ #[cfg(test)]
+ define_feature!(23, UnknownFeature, [TestingContext],
+ "Feature flags for an unknown feature used in testing.", set_unknown_feature_optional,
+ set_unknown_feature_required);