@@ -2818,7 +2818,7 @@ mod tests {
28182818 use crate :: chain:: transaction:: OutPoint ;
28192819 use crate :: sign:: EntropySource ;
28202820 use crate :: ln:: ChannelId ;
2821- use crate :: ln:: features:: { BlindedHopFeatures , Bolt12InvoiceFeatures , ChannelFeatures , InitFeatures , NodeFeatures } ;
2821+ use crate :: ln:: features:: { BlindedHopFeatures , ChannelFeatures , InitFeatures , NodeFeatures } ;
28222822 use crate :: ln:: msgs:: { ErrorAction , LightningError , UnsignedChannelUpdate , MAX_VALUE_MSAT } ;
28232823 use crate :: ln:: channelmanager;
28242824 use crate :: offers:: invoice:: BlindedPayInfo ;
@@ -4674,7 +4674,7 @@ mod tests {
46744674 do_simple_mpp_route_test ( clear_payment_params) ;
46754675
46764676 // MPP to a 1-hop blinded path for nodes[2]
4677- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
4677+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
46784678 let blinded_path = BlindedPath {
46794679 introduction_node_id : nodes[ 2 ] ,
46804680 blinding_point : ln_test_utils:: pubkey ( 42 ) ,
@@ -6795,7 +6795,7 @@ mod tests {
67956795 cltv_expiry_delta : 10 ,
67966796 features : BlindedHopFeatures :: empty ( ) ,
67976797 } ;
6798- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
6798+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
67996799 let payment_params = PaymentParameters :: blinded ( vec ! [
68006800 ( blinded_payinfo. clone( ) , blinded_path. clone( ) ) ,
68016801 ( blinded_payinfo. clone( ) , blinded_path. clone( ) ) ] )
@@ -7104,7 +7104,7 @@ mod tests {
71047104 let random_seed_bytes = keys_manager. get_secure_random_bytes ( ) ;
71057105 let config = UserConfig :: default ( ) ;
71067106
7107- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7107+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
71087108 let blinded_path_1 = BlindedPath {
71097109 introduction_node_id : nodes[ 2 ] ,
71107110 blinding_point : ln_test_utils:: pubkey ( 42 ) ,
@@ -7132,7 +7132,7 @@ mod tests {
71327132 ( blinded_payinfo_2. clone( ) , blinded_path_2. clone( ) ) ,
71337133 ] ;
71347134 let payment_params = PaymentParameters :: blinded ( blinded_hints. clone ( ) )
7135- . with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( ) ;
7135+ . with_bolt12_features ( bolt12_features) . unwrap ( ) ;
71367136
71377137 let mut route_params = RouteParameters :: from_payment_params_and_value ( payment_params, 100_000 ) ;
71387138 route_params. max_total_routing_fee_msat = Some ( 100_000 ) ;
@@ -7297,9 +7297,9 @@ mod tests {
72977297 blinded_hints[ 1 ] . 0 . htlc_maximum_msat = 2_8089_0861_1584_0000 ;
72987298 blinded_hints[ 1 ] . 0 . cltv_expiry_delta = 0 ;
72997299
7300- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7300+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
73017301 let payment_params = PaymentParameters :: blinded ( blinded_hints. clone ( ) )
7302- . with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( ) ;
7302+ . with_bolt12_features ( bolt12_features) . unwrap ( ) ;
73037303
73047304 let netgraph = network_graph. read_only ( ) ;
73057305 let route_params = RouteParameters :: from_payment_params_and_value (
@@ -7349,7 +7349,7 @@ mod tests {
73497349 ] ;
73507350 blinded_hints[ 1 ] . 1 . introduction_node_id = nodes[ 6 ] ;
73517351
7352- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7352+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
73537353 let payment_params = PaymentParameters :: blinded ( blinded_hints. clone ( ) )
73547354 . with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( ) ;
73557355
@@ -7406,7 +7406,7 @@ mod tests {
74067406
74077407 blinded_hints[ 2 ] . 1 . introduction_node_id = nodes[ 6 ] ;
74087408
7409- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7409+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
74107410 let payment_params = PaymentParameters :: blinded ( blinded_hints. clone ( ) )
74117411 . with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( ) ;
74127412
@@ -7466,7 +7466,7 @@ mod tests {
74667466 cltv_expiry_delta : 0 ,
74677467 features : BlindedHopFeatures :: empty ( ) ,
74687468 } ;
7469- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7469+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
74707470 PaymentParameters :: blinded ( vec ! [ ( blinded_payinfo, blinded_path) ] )
74717471 . with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( )
74727472 } else {
@@ -7549,7 +7549,7 @@ mod tests {
75497549 features : BlindedHopFeatures :: empty ( ) ,
75507550 } , blinded_path. clone ( ) ) ) ;
75517551 }
7552- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7552+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
75537553 PaymentParameters :: blinded ( blinded_hints. clone ( ) )
75547554 . with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( )
75557555 } else {
@@ -7640,7 +7640,7 @@ mod tests {
76407640 ] ,
76417641 } )
76427642 ] ;
7643- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7643+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
76447644 let payment_params = PaymentParameters :: blinded ( blinded_hints. clone ( ) )
76457645 . with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( ) ;
76467646 let route_params = RouteParameters :: from_payment_params_and_value (
@@ -7700,7 +7700,7 @@ mod tests {
77007700 features : BlindedHopFeatures :: empty ( ) ,
77017701 } , blinded_path. clone ( ) ) ) ;
77027702 }
7703- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7703+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
77047704 PaymentParameters :: blinded ( blinded_hints. clone ( ) )
77057705 . with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( )
77067706 } ;
0 commit comments