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
@@ -147,7 +149,7 @@ mod sealed {
147149 // Byte 2
148150 BasicMPP | Wumbo | AnchorsNonzeroFeeHtlcTx | AnchorsZeroFeeHtlcTx ,
149151 // Byte 3
150- RouteBlinding | ShutdownAnySegwit | Taproot ,
152+ RouteBlinding | ShutdownAnySegwit | DualFund | Taproot ,
151153 // Byte 4
152154 OnionMessages ,
153155 // Byte 5
@@ -168,7 +170,7 @@ mod sealed {
168170 // Byte 2
169171 BasicMPP | Wumbo | AnchorsNonzeroFeeHtlcTx | AnchorsZeroFeeHtlcTx ,
170172 // Byte 3
171- RouteBlinding | ShutdownAnySegwit | Taproot ,
173+ RouteBlinding | ShutdownAnySegwit | DualFund | Taproot ,
172174 // Byte 4
173175 OnionMessages ,
174176 // Byte 5
@@ -499,6 +501,16 @@ mod sealed {
499501 supports_shutdown_anysegwit,
500502 requires_shutdown_anysegwit
501503 ) ;
504+ define_feature ! (
505+ 29 ,
506+ DualFund ,
507+ [ InitContext , NodeContext ] ,
508+ "Feature flags for `option_dual_fund`." ,
509+ set_dual_fund_optional,
510+ set_dual_fund_required,
511+ supports_dual_fund,
512+ requires_dual_fund
513+ ) ;
502514 define_feature ! (
503515 31 ,
504516 Taproot ,
0 commit comments