@@ -158,6 +158,7 @@ mod sealed {
158
158
BasicMPP ,
159
159
] ) ;
160
160
define_context ! ( OfferContext , [ ] ) ;
161
+ define_context ! ( InvoiceRequestContext , [ ] ) ;
161
162
// This isn't a "real" feature context, and is only used in the channel_type field in an
162
163
// `OpenChannel` message.
163
164
define_context ! ( ChannelTypeContext , [
@@ -367,7 +368,8 @@ mod sealed {
367
368
supports_keysend, requires_keysend) ;
368
369
369
370
#[ cfg( test) ]
370
- define_feature ! ( 123456789 , UnknownFeature , [ NodeContext , ChannelContext , InvoiceContext , OfferContext ] ,
371
+ define_feature ! ( 123456789 , UnknownFeature ,
372
+ [ NodeContext , ChannelContext , InvoiceContext , OfferContext , InvoiceRequestContext ] ,
371
373
"Feature flags for an unknown feature used in testing." , set_unknown_feature_optional,
372
374
set_unknown_feature_required, supports_unknown_test_feature, requires_unknown_test_feature) ;
373
375
}
@@ -426,8 +428,10 @@ pub type NodeFeatures = Features<sealed::NodeContext>;
426
428
pub type ChannelFeatures = Features < sealed:: ChannelContext > ;
427
429
/// Features used within an invoice.
428
430
pub type InvoiceFeatures = Features < sealed:: InvoiceContext > ;
429
- /// Features used within an offer.
431
+ /// Features used within an ` offer` .
430
432
pub type OfferFeatures = Features < sealed:: OfferContext > ;
433
+ /// Features used within an `invoice_request`.
434
+ pub type InvoiceRequestFeatures = Features < sealed:: InvoiceRequestContext > ;
431
435
432
436
/// Features used within the channel_type field in an OpenChannel message.
433
437
///
@@ -735,6 +739,7 @@ macro_rules! impl_feature_tlv_write {
735
739
736
740
impl_feature_tlv_write ! ( ChannelTypeFeatures ) ;
737
741
impl_feature_tlv_write ! ( OfferFeatures ) ;
742
+ impl_feature_tlv_write ! ( InvoiceRequestFeatures ) ;
738
743
739
744
#[ cfg( test) ]
740
745
mod tests {
0 commit comments