Skip to content

Commit ae3375b

Browse files
committed
Re-order AnchorsZeroFeeHtlcTx in module docs/tests
Move AnchorsZeroFeeHtlcTx after Wumbo to keep order by feature bit. Also, update setting order and comment in tests.
1 parent 568d1a5 commit ae3375b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lightning/src/ln/features.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
//! (see [BOLT-4](https://github.com/lightning/bolts/blob/master/04-onion-routing.md#basic-multi-part-payments) for more information).
4242
//! - `Wumbo` - requires/supports that a node create large channels. Called `option_support_large_channel` in the spec.
4343
//! (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).
4448
//! - `ShutdownAnySegwit` - requires/supports that future segwit versions are allowed in `shutdown`
4549
//! (see [BOLT-2](https://github.com/lightning/bolts/blob/master/02-peer-protocol.md) for more information).
4650
//! - `OnionMessages` - requires/supports forwarding onion messages
@@ -60,10 +64,6 @@
6064
//! for more info).
6165
//! - `Keysend` - send funds to a node without an invoice
6266
//! (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).
6767
//!
6868
//! LDK knows about the following features, but does not support them:
6969
//! - `AnchorsNonzeroFeeHtlcTx` - the initial version of anchor outputs, which was later found to be
@@ -1029,7 +1029,7 @@ mod tests {
10291029
// Check that the flags are as expected:
10301030
// - option_data_loss_protect (req)
10311031
// - var_onion_optin (req) | static_remote_key (req) | payment_secret(req)
1032-
// - basic_mpp | wumbo | anchors_zero_fee_htlc_tx
1032+
// - basic_mpp | wumbo | option_anchors_zero_fee_htlc_tx
10331033
// - opt_shutdown_anysegwit
10341034
// - onion_messages
10351035
// - option_channel_type | option_scid_alias

0 commit comments

Comments
 (0)