4949//! (see [BOLT-4](https://github.com/lightning/bolts/blob/master/04-onion-routing.md#route-blinding) for more information).
5050//! - `ShutdownAnySegwit` - requires/supports that future segwit versions are allowed in `shutdown`
5151//! (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/blob/master/02-peer-protocol.md#channel-establishment-v2) for more information).
5254//! - `OnionMessages` - requires/supports forwarding onion messages
5355//! (see [BOLT-7](https://github.com/lightning/bolts/pull/759/files) for more information).
5456// TODO: update link
@@ -146,7 +148,7 @@ mod sealed {
146148 // Byte 2
147149 BasicMPP | Wumbo | AnchorsNonzeroFeeHtlcTx | AnchorsZeroFeeHtlcTx ,
148150 // Byte 3
149- RouteBlinding | ShutdownAnySegwit | Taproot ,
151+ RouteBlinding | ShutdownAnySegwit | DualFund | Taproot ,
150152 // Byte 4
151153 OnionMessages ,
152154 // Byte 5
@@ -167,7 +169,7 @@ mod sealed {
167169 // Byte 2
168170 BasicMPP | Wumbo | AnchorsNonzeroFeeHtlcTx | AnchorsZeroFeeHtlcTx ,
169171 // Byte 3
170- RouteBlinding | ShutdownAnySegwit | Taproot ,
172+ RouteBlinding | ShutdownAnySegwit | DualFund | Taproot ,
171173 // Byte 4
172174 OnionMessages ,
173175 // Byte 5
@@ -502,6 +504,16 @@ mod sealed {
502504 supports_shutdown_anysegwit,
503505 requires_shutdown_anysegwit
504506 ) ;
507+ define_feature ! (
508+ 29 ,
509+ DualFund ,
510+ [ InitContext , NodeContext ] ,
511+ "Feature flags for `option_dual_fund`." ,
512+ set_dual_fund_optional,
513+ set_dual_fund_required,
514+ supports_dual_fund,
515+ requires_dual_fund
516+ ) ;
505517 define_feature ! (
506518 31 ,
507519 Taproot ,
0 commit comments