@@ -2690,7 +2690,7 @@ mod tests {
2690
2690
use crate :: chain:: transaction:: OutPoint ;
2691
2691
use crate :: sign:: EntropySource ;
2692
2692
use crate :: ln:: ChannelId ;
2693
- use crate :: ln:: features:: { BlindedHopFeatures , Bolt12InvoiceFeatures , ChannelFeatures , InitFeatures , NodeFeatures } ;
2693
+ use crate :: ln:: features:: { BlindedHopFeatures , ChannelFeatures , InitFeatures , NodeFeatures } ;
2694
2694
use crate :: ln:: msgs:: { ErrorAction , LightningError , UnsignedChannelUpdate , MAX_VALUE_MSAT } ;
2695
2695
use crate :: ln:: channelmanager;
2696
2696
use crate :: offers:: invoice:: BlindedPayInfo ;
@@ -4483,7 +4483,7 @@ mod tests {
4483
4483
do_simple_mpp_route_test ( clear_payment_params) ;
4484
4484
4485
4485
// MPP to a 1-hop blinded path for nodes[2]
4486
- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
4486
+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
4487
4487
let blinded_path = BlindedPath {
4488
4488
introduction_node_id : nodes[ 2 ] ,
4489
4489
blinding_point : ln_test_utils:: pubkey ( 42 ) ,
@@ -6588,7 +6588,7 @@ mod tests {
6588
6588
cltv_expiry_delta : 10 ,
6589
6589
features : BlindedHopFeatures :: empty ( ) ,
6590
6590
} ;
6591
- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
6591
+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
6592
6592
let payment_params = PaymentParameters :: blinded ( vec ! [
6593
6593
( blinded_payinfo. clone( ) , blinded_path. clone( ) ) ,
6594
6594
( blinded_payinfo. clone( ) , blinded_path. clone( ) ) ] )
@@ -6891,7 +6891,7 @@ mod tests {
6891
6891
let random_seed_bytes = keys_manager. get_secure_random_bytes ( ) ;
6892
6892
let config = UserConfig :: default ( ) ;
6893
6893
6894
- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
6894
+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
6895
6895
let blinded_path_1 = BlindedPath {
6896
6896
introduction_node_id : nodes[ 2 ] ,
6897
6897
blinding_point : ln_test_utils:: pubkey ( 42 ) ,
@@ -6919,7 +6919,7 @@ mod tests {
6919
6919
( blinded_payinfo_2. clone( ) , blinded_path_2. clone( ) ) ,
6920
6920
] ;
6921
6921
let payment_params = PaymentParameters :: blinded ( blinded_hints. clone ( ) )
6922
- . with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( ) ;
6922
+ . with_bolt12_features ( bolt12_features) . unwrap ( ) ;
6923
6923
6924
6924
let route_params = RouteParameters :: from_payment_params_and_value ( payment_params, 100_000 ) ;
6925
6925
let route = get_route ( & our_id, & route_params, & network_graph, None , Arc :: clone ( & logger) ,
@@ -7083,9 +7083,9 @@ mod tests {
7083
7083
blinded_hints[ 1 ] . 0 . htlc_maximum_msat = 2_8089_0861_1584_0000 ;
7084
7084
blinded_hints[ 1 ] . 0 . cltv_expiry_delta = 0 ;
7085
7085
7086
- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7086
+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
7087
7087
let payment_params = PaymentParameters :: blinded ( blinded_hints. clone ( ) )
7088
- . with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( ) ;
7088
+ . with_bolt12_features ( bolt12_features) . unwrap ( ) ;
7089
7089
7090
7090
let netgraph = network_graph. read_only ( ) ;
7091
7091
let route_params = RouteParameters :: from_payment_params_and_value (
0 commit comments