43
43
//! (see [BOLT-2](https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-open_channel-message) for more information).
44
44
//! - `ShutdownAnySegwit` - requires/supports that future segwit versions are allowed in `shutdown`
45
45
//! (see [BOLT-2](https://github.com/lightning/bolts/blob/master/02-peer-protocol.md) for more information).
46
+ //! - `DualFund` - requires/supports V2 channel establishment which allows both peers to contribute
47
+ //! funds to a new channel (see [BOLT-2](https://github.com/lightning/bolts/pull/851/files) for more information).
48
+ // TODO(dual_fund): Update link
46
49
//! - `OnionMessages` - requires/supports forwarding onion messages
47
50
//! (see [BOLT-7](https://github.com/lightning/bolts/pull/759/files) for more information).
48
51
// TODO: update link
@@ -143,7 +146,7 @@ mod sealed {
143
146
// Byte 2
144
147
BasicMPP | Wumbo | AnchorsNonzeroFeeHtlcTx | AnchorsZeroFeeHtlcTx ,
145
148
// Byte 3
146
- ShutdownAnySegwit ,
149
+ ShutdownAnySegwit | DualFund ,
147
150
// Byte 4
148
151
OnionMessages ,
149
152
// Byte 5
@@ -159,7 +162,7 @@ mod sealed {
159
162
// Byte 2
160
163
BasicMPP | Wumbo | AnchorsNonzeroFeeHtlcTx | AnchorsZeroFeeHtlcTx ,
161
164
// Byte 3
162
- ShutdownAnySegwit ,
165
+ ShutdownAnySegwit | DualFund ,
163
166
// Byte 4
164
167
OnionMessages ,
165
168
// Byte 5
@@ -394,6 +397,9 @@ mod sealed {
394
397
define_feature ! ( 27 , ShutdownAnySegwit , [ InitContext , NodeContext ] ,
395
398
"Feature flags for `opt_shutdown_anysegwit`." , set_shutdown_any_segwit_optional,
396
399
set_shutdown_any_segwit_required, supports_shutdown_anysegwit, requires_shutdown_anysegwit) ;
400
+ define_feature ! ( 29 , DualFund , [ InitContext , NodeContext ] ,
401
+ "Feature flags for `option_dual_fund`." , set_dual_fund_optional, set_dual_fund_required,
402
+ supports_dual_fund, requires_dual_fund) ;
397
403
define_feature ! ( 39 , OnionMessages , [ InitContext , NodeContext ] ,
398
404
"Feature flags for `option_onion_messages`." , set_onion_messages_optional,
399
405
set_onion_messages_required, supports_onion_messages, requires_onion_messages) ;
0 commit comments