49
49
//! (see [BOLT-4](https://github.com/lightning/bolts/blob/master/04-onion-routing.md#route-blinding) for more information).
50
50
//! - `ShutdownAnySegwit` - requires/supports that future segwit versions are allowed in `shutdown`
51
51
//! (see [BOLT-2](https://github.com/lightning/bolts/blob/master/02-peer-protocol.md) for more information).
52
+ //! - `DualFund` - requires/supports V2 channel establishment
53
+ //! (see [BOLT-2](https://github.com/lightning/bolts/pull/851/files) for more information).
54
+ // TODO: update link
52
55
//! - `OnionMessages` - requires/supports forwarding onion messages
53
56
//! (see [BOLT-7](https://github.com/lightning/bolts/pull/759/files) for more information).
54
57
// TODO: update link
@@ -149,7 +152,7 @@ mod sealed {
149
152
// Byte 2
150
153
BasicMPP | Wumbo | AnchorsNonzeroFeeHtlcTx | AnchorsZeroFeeHtlcTx ,
151
154
// Byte 3
152
- RouteBlinding | ShutdownAnySegwit | Taproot ,
155
+ RouteBlinding | ShutdownAnySegwit | DualFund | Taproot ,
153
156
// Byte 4
154
157
OnionMessages ,
155
158
// Byte 5
@@ -167,7 +170,7 @@ mod sealed {
167
170
// Byte 2
168
171
BasicMPP | Wumbo | AnchorsNonzeroFeeHtlcTx | AnchorsZeroFeeHtlcTx ,
169
172
// Byte 3
170
- RouteBlinding | ShutdownAnySegwit | Taproot ,
173
+ RouteBlinding | ShutdownAnySegwit | DualFund | Taproot ,
171
174
// Byte 4
172
175
OnionMessages ,
173
176
// Byte 5
@@ -409,6 +412,9 @@ mod sealed {
409
412
define_feature ! ( 27 , ShutdownAnySegwit , [ InitContext , NodeContext ] ,
410
413
"Feature flags for `opt_shutdown_anysegwit`." , set_shutdown_any_segwit_optional,
411
414
set_shutdown_any_segwit_required, supports_shutdown_anysegwit, requires_shutdown_anysegwit) ;
415
+ define_feature ! ( 29 , DualFund , [ InitContext , NodeContext ] ,
416
+ "Feature flags for `option_dual_fund`." , set_dual_fund_optional, set_dual_fund_required,
417
+ supports_dual_fund, requires_dual_fund) ;
412
418
define_feature ! ( 31 , Taproot , [ InitContext , NodeContext , ChannelTypeContext ] ,
413
419
"Feature flags for `option_taproot`." , set_taproot_optional,
414
420
set_taproot_required, supports_taproot, requires_taproot) ;
0 commit comments