41
41
//! (see [BOLT-4](https://github.com/lightning/bolts/blob/master/04-onion-routing.md#basic-multi-part-payments) for more information).
42
42
//! - `Wumbo` - requires/supports that a node create large channels. Called `option_support_large_channel` in the spec.
43
43
//! (see [BOLT-2](https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-open_channel-message) for more information).
44
+ //! - `AnchorsZeroFeeHtlcTx` - requires/supports that commitment transactions include anchor outputs
45
+ //! and HTLC transactions are pre-signed with zero fee (see
46
+ //! [BOLT-3](https://github.com/lightning/bolts/blob/master/03-transactions.md) for more
47
+ //! information).
44
48
//! - `ShutdownAnySegwit` - requires/supports that future segwit versions are allowed in `shutdown`
45
49
//! (see [BOLT-2](https://github.com/lightning/bolts/blob/master/02-peer-protocol.md) for more information).
46
50
//! - `OnionMessages` - requires/supports forwarding onion messages
52
56
//! (see [BOLT-2](https://github.com/lightning/bolts/blob/master/02-peer-protocol.md) for more information).
53
57
//! - `Keysend` - send funds to a node without an invoice
54
58
//! (see the [`Keysend` feature assignment proposal](https://github.com/lightning/bolts/issues/605#issuecomment-606679798) for more information).
55
- //! - `AnchorsZeroFeeHtlcTx` - requires/supports that commitment transactions include anchor outputs
56
- //! and HTLC transactions are pre-signed with zero fee (see
57
- //! [BOLT-3](https://github.com/lightning/bolts/blob/master/03-transactions.md) for more
58
- //! information).
59
59
//!
60
60
//! [BOLT #9]: https://github.com/lightning/bolts/blob/master/09-features.md
61
61
//! [messages]: crate::ln::msgs
@@ -840,12 +840,12 @@ mod tests {
840
840
init_features. set_payment_secret_required ( ) ;
841
841
init_features. set_basic_mpp_optional ( ) ;
842
842
init_features. set_wumbo_optional ( ) ;
843
+ init_features. set_anchors_zero_fee_htlc_tx_optional ( ) ;
843
844
init_features. set_shutdown_any_segwit_optional ( ) ;
844
845
init_features. set_onion_messages_optional ( ) ;
845
846
init_features. set_channel_type_optional ( ) ;
846
847
init_features. set_scid_privacy_optional ( ) ;
847
848
init_features. set_zero_conf_optional ( ) ;
848
- init_features. set_anchors_zero_fee_htlc_tx_optional ( ) ;
849
849
850
850
assert ! ( init_features. initial_routing_sync( ) ) ;
851
851
assert ! ( !init_features. supports_upfront_shutdown_script( ) ) ;
@@ -856,7 +856,7 @@ mod tests {
856
856
// Check that the flags are as expected:
857
857
// - option_data_loss_protect
858
858
// - var_onion_optin (req) | static_remote_key (req) | payment_secret(req)
859
- // - basic_mpp | wumbo
859
+ // - basic_mpp | wumbo | option_anchors_zero_fee_htlc_tx
860
860
// - opt_shutdown_anysegwit
861
861
// - onion_messages
862
862
// - option_channel_type | option_scid_alias
0 commit comments