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/blob/master/02-peer-protocol.md#channel-establishment-v2) for more information).
52
54
//! - `OnionMessages` - requires/supports forwarding onion messages
53
55
//! (see [BOLT-7](https://github.com/lightning/bolts/pull/759/files) for more information).
54
56
// TODO: update link
@@ -146,7 +148,7 @@ mod sealed {
146
148
// Byte 2
147
149
BasicMPP | Wumbo | AnchorsNonzeroFeeHtlcTx | AnchorsZeroFeeHtlcTx ,
148
150
// Byte 3
149
- RouteBlinding | ShutdownAnySegwit | Taproot ,
151
+ RouteBlinding | ShutdownAnySegwit | DualFund | Taproot ,
150
152
// Byte 4
151
153
OnionMessages ,
152
154
// Byte 5
@@ -167,7 +169,7 @@ mod sealed {
167
169
// Byte 2
168
170
BasicMPP | Wumbo | AnchorsNonzeroFeeHtlcTx | AnchorsZeroFeeHtlcTx ,
169
171
// Byte 3
170
- RouteBlinding | ShutdownAnySegwit | Taproot ,
172
+ RouteBlinding | ShutdownAnySegwit | DualFund | Taproot ,
171
173
// Byte 4
172
174
OnionMessages ,
173
175
// Byte 5
@@ -502,6 +504,16 @@ mod sealed {
502
504
supports_shutdown_anysegwit,
503
505
requires_shutdown_anysegwit
504
506
) ;
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
+ ) ;
505
517
define_feature ! (
506
518
31 ,
507
519
Taproot ,
0 commit comments