@@ -2818,7 +2818,7 @@ mod tests {
2818
2818
use crate :: chain:: transaction:: OutPoint ;
2819
2819
use crate :: sign:: EntropySource ;
2820
2820
use crate :: ln:: ChannelId ;
2821
- use crate :: ln:: features:: { BlindedHopFeatures , Bolt12InvoiceFeatures , ChannelFeatures , InitFeatures , NodeFeatures } ;
2821
+ use crate :: ln:: features:: { BlindedHopFeatures , ChannelFeatures , InitFeatures , NodeFeatures } ;
2822
2822
use crate :: ln:: msgs:: { ErrorAction , LightningError , UnsignedChannelUpdate , MAX_VALUE_MSAT } ;
2823
2823
use crate :: ln:: channelmanager;
2824
2824
use crate :: offers:: invoice:: BlindedPayInfo ;
@@ -4674,7 +4674,7 @@ mod tests {
4674
4674
do_simple_mpp_route_test ( clear_payment_params) ;
4675
4675
4676
4676
// 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) ;
4678
4678
let blinded_path = BlindedPath {
4679
4679
introduction_node_id : nodes[ 2 ] ,
4680
4680
blinding_point : ln_test_utils:: pubkey ( 42 ) ,
@@ -6795,7 +6795,7 @@ mod tests {
6795
6795
cltv_expiry_delta : 10 ,
6796
6796
features : BlindedHopFeatures :: empty ( ) ,
6797
6797
} ;
6798
- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
6798
+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
6799
6799
let payment_params = PaymentParameters :: blinded ( vec ! [
6800
6800
( blinded_payinfo. clone( ) , blinded_path. clone( ) ) ,
6801
6801
( blinded_payinfo. clone( ) , blinded_path. clone( ) ) ] )
@@ -7104,7 +7104,7 @@ mod tests {
7104
7104
let random_seed_bytes = keys_manager. get_secure_random_bytes ( ) ;
7105
7105
let config = UserConfig :: default ( ) ;
7106
7106
7107
- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7107
+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
7108
7108
let blinded_path_1 = BlindedPath {
7109
7109
introduction_node_id : nodes[ 2 ] ,
7110
7110
blinding_point : ln_test_utils:: pubkey ( 42 ) ,
@@ -7132,7 +7132,7 @@ mod tests {
7132
7132
( blinded_payinfo_2. clone( ) , blinded_path_2. clone( ) ) ,
7133
7133
] ;
7134
7134
let payment_params = PaymentParameters :: blinded ( blinded_hints. clone ( ) )
7135
- . with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( ) ;
7135
+ . with_bolt12_features ( bolt12_features) . unwrap ( ) ;
7136
7136
7137
7137
let mut route_params = RouteParameters :: from_payment_params_and_value ( payment_params, 100_000 ) ;
7138
7138
route_params. max_total_routing_fee_msat = Some ( 100_000 ) ;
@@ -7297,9 +7297,9 @@ mod tests {
7297
7297
blinded_hints[ 1 ] . 0 . htlc_maximum_msat = 2_8089_0861_1584_0000 ;
7298
7298
blinded_hints[ 1 ] . 0 . cltv_expiry_delta = 0 ;
7299
7299
7300
- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7300
+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
7301
7301
let payment_params = PaymentParameters :: blinded ( blinded_hints. clone ( ) )
7302
- . with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( ) ;
7302
+ . with_bolt12_features ( bolt12_features) . unwrap ( ) ;
7303
7303
7304
7304
let netgraph = network_graph. read_only ( ) ;
7305
7305
let route_params = RouteParameters :: from_payment_params_and_value (
@@ -7349,7 +7349,7 @@ mod tests {
7349
7349
] ;
7350
7350
blinded_hints[ 1 ] . 1 . introduction_node_id = nodes[ 6 ] ;
7351
7351
7352
- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7352
+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
7353
7353
let payment_params = PaymentParameters :: blinded ( blinded_hints. clone ( ) )
7354
7354
. with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( ) ;
7355
7355
@@ -7406,7 +7406,7 @@ mod tests {
7406
7406
7407
7407
blinded_hints[ 2 ] . 1 . introduction_node_id = nodes[ 6 ] ;
7408
7408
7409
- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7409
+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
7410
7410
let payment_params = PaymentParameters :: blinded ( blinded_hints. clone ( ) )
7411
7411
. with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( ) ;
7412
7412
@@ -7466,7 +7466,7 @@ mod tests {
7466
7466
cltv_expiry_delta : 0 ,
7467
7467
features : BlindedHopFeatures :: empty ( ) ,
7468
7468
} ;
7469
- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7469
+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
7470
7470
PaymentParameters :: blinded ( vec ! [ ( blinded_payinfo, blinded_path) ] )
7471
7471
. with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( )
7472
7472
} else {
@@ -7549,7 +7549,7 @@ mod tests {
7549
7549
features : BlindedHopFeatures :: empty ( ) ,
7550
7550
} , blinded_path. clone ( ) ) ) ;
7551
7551
}
7552
- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7552
+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
7553
7553
PaymentParameters :: blinded ( blinded_hints. clone ( ) )
7554
7554
. with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( )
7555
7555
} else {
@@ -7640,7 +7640,7 @@ mod tests {
7640
7640
] ,
7641
7641
} )
7642
7642
] ;
7643
- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7643
+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
7644
7644
let payment_params = PaymentParameters :: blinded ( blinded_hints. clone ( ) )
7645
7645
. with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( ) ;
7646
7646
let route_params = RouteParameters :: from_payment_params_and_value (
@@ -7700,7 +7700,7 @@ mod tests {
7700
7700
features : BlindedHopFeatures :: empty ( ) ,
7701
7701
} , blinded_path. clone ( ) ) ) ;
7702
7702
}
7703
- let bolt12_features: Bolt12InvoiceFeatures = channelmanager:: provided_bolt11_invoice_features ( & config) . to_context ( ) ;
7703
+ let bolt12_features = channelmanager:: provided_bolt12_invoice_features ( & config) ;
7704
7704
PaymentParameters :: blinded ( blinded_hints. clone ( ) )
7705
7705
. with_bolt12_features ( bolt12_features. clone ( ) ) . unwrap ( )
7706
7706
} ;
0 commit comments