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
60
64
//! for more info).
61
65
//! - `Keysend` - send funds to a node without an invoice
62
66
//! (see the [`Keysend` feature assignment proposal](https://github.com/lightning/bolts/issues/605#issuecomment-606679798) for more information).
63
- //! - `AnchorsZeroFeeHtlcTx` - requires/supports that commitment transactions include anchor outputs
64
- //! and HTLC transactions are pre-signed with zero fee (see
65
- //! [BOLT-3](https://github.com/lightning/bolts/blob/master/03-transactions.md) for more
66
- //! information).
67
67
//!
68
68
//! [BOLT #9]: https://github.com/lightning/bolts/blob/master/09-features.md
69
69
//! [messages]: crate::ln::msgs
@@ -881,12 +881,12 @@ mod tests {
881
881
init_features. set_payment_secret_required ( ) ;
882
882
init_features. set_basic_mpp_optional ( ) ;
883
883
init_features. set_wumbo_optional ( ) ;
884
+ init_features. set_anchors_zero_fee_htlc_tx_optional ( ) ;
884
885
init_features. set_shutdown_any_segwit_optional ( ) ;
885
886
init_features. set_onion_messages_optional ( ) ;
886
887
init_features. set_channel_type_optional ( ) ;
887
888
init_features. set_scid_privacy_optional ( ) ;
888
889
init_features. set_zero_conf_optional ( ) ;
889
- init_features. set_anchors_zero_fee_htlc_tx_optional ( ) ;
890
890
891
891
assert ! ( init_features. initial_routing_sync( ) ) ;
892
892
assert ! ( !init_features. supports_upfront_shutdown_script( ) ) ;
@@ -897,7 +897,7 @@ mod tests {
897
897
// Check that the flags are as expected:
898
898
// - option_data_loss_protect (req)
899
899
// - var_onion_optin (req) | static_remote_key (req) | payment_secret(req)
900
- // - basic_mpp | wumbo
900
+ // - basic_mpp | wumbo | option_anchors_zero_fee_htlc_tx
901
901
// - opt_shutdown_anysegwit
902
902
// - onion_messages
903
903
// - option_channel_type | option_scid_alias
0 commit comments