@@ -162,13 +162,17 @@ mod sealed {
162
162
// Byte 4
163
163
Quiescence | OnionMessages ,
164
164
// Byte 5
165
- ProvideStorage | ChannelType | SCIDPrivacy | AnchorZeroFeeCommitments ,
165
+ ProvideStorage | ChannelType | SCIDPrivacy ,
166
166
// Byte 6
167
167
ZeroConf ,
168
168
// Byte 7
169
169
Trampoline | SimpleClose | Splice ,
170
- // Byte 8 - 130
171
- , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
170
+ // Byte 8 - 16
171
+ , , , , , , , , ,
172
+ // Byte 17
173
+ AnchorZeroFeeCommitmentsStaging ,
174
+ // Byte 18 - 130
175
+ , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
172
176
// Byte 131
173
177
HtlcHold ,
174
178
]
@@ -187,13 +191,17 @@ mod sealed {
187
191
// Byte 4
188
192
Quiescence | OnionMessages ,
189
193
// Byte 5
190
- ProvideStorage | ChannelType | SCIDPrivacy | AnchorZeroFeeCommitments ,
194
+ ProvideStorage | ChannelType | SCIDPrivacy ,
191
195
// Byte 6
192
196
ZeroConf | Keysend ,
193
197
// Byte 7
194
198
Trampoline | SimpleClose | Splice ,
195
- // Byte 8 - 31
196
- , , , , , , , , , , , , , , , , , , , , , , , ,
199
+ // Byte 8 - 16
200
+ , , , , , , , , ,
201
+ // Byte 17
202
+ AnchorZeroFeeCommitmentsStaging ,
203
+ // Byte 18 - 31
204
+ , , , , , , , , , , , , , ,
197
205
// Byte 32
198
206
DnsResolver ,
199
207
// Byte 33 - 130
@@ -256,9 +264,13 @@ mod sealed {
256
264
// Byte 4
257
265
,
258
266
// Byte 5
259
- SCIDPrivacy | AnchorZeroFeeCommitments ,
267
+ SCIDPrivacy ,
260
268
// Byte 6
261
269
ZeroConf ,
270
+ // Byte 7 - 16
271
+ , , , , , , , , , ,
272
+ // Byte 17
273
+ AnchorZeroFeeCommitmentsStaging ,
262
274
] ) ;
263
275
264
276
/// Defines a feature with the given bits for the specified [`Context`]s. The generated trait is
@@ -594,17 +606,6 @@ mod sealed {
594
606
supports_onion_messages,
595
607
requires_onion_messages
596
608
) ;
597
- define_feature ! (
598
- 41 ,
599
- AnchorZeroFeeCommitments ,
600
- [ InitContext , NodeContext , ChannelTypeContext ] ,
601
- "Feature flags for `option_zero_fee_commitments`." ,
602
- set_anchor_zero_fee_commitments_optional,
603
- set_anchor_zero_fee_commitments_required,
604
- clear_anchor_zero_fee_commitments,
605
- supports_anchor_zero_fee_commitments,
606
- requires_anchor_zero_fee_commitments
607
- ) ;
608
609
define_feature ! (
609
610
43 ,
610
611
ProvideStorage ,
@@ -698,6 +699,17 @@ mod sealed {
698
699
// By default, allocate enough bytes to cover up to Splice. Update this as new features are
699
700
// added which we expect to appear commonly across contexts.
700
701
pub ( super ) const MIN_FEATURES_ALLOCATION_BYTES : usize = ( 63 + 7 ) / 8 ;
702
+ define_feature ! (
703
+ 141 , // The BOLTs PR uses feature bit 40/41, so add +100 for the experimental bit
704
+ AnchorZeroFeeCommitmentsStaging ,
705
+ [ InitContext , NodeContext , ChannelTypeContext ] ,
706
+ "Feature flags for `option_zero_fee_commitments`." ,
707
+ set_anchor_zero_fee_commitments_optional,
708
+ set_anchor_zero_fee_commitments_required,
709
+ clear_anchor_zero_fee_commitments,
710
+ supports_anchor_zero_fee_commitments,
711
+ requires_anchor_zero_fee_commitments
712
+ ) ;
701
713
define_feature ! (
702
714
259 ,
703
715
DnsResolver ,
@@ -1074,7 +1086,7 @@ impl ChannelTypeFeatures {
1074
1086
/// Constructs a ChannelTypeFeatures with zero fee commitment anchors support.
1075
1087
pub fn anchors_zero_fee_commitments ( ) -> Self {
1076
1088
let mut ret = Self :: empty ( ) ;
1077
- <sealed:: ChannelTypeContext as sealed:: AnchorZeroFeeCommitments >:: set_required_bit (
1089
+ <sealed:: ChannelTypeContext as sealed:: AnchorZeroFeeCommitmentsStaging >:: set_required_bit (
1078
1090
& mut ret,
1079
1091
) ;
1080
1092
ret
0 commit comments