@@ -6,6 +6,7 @@ use ldk_node::bitcoin::secp256k1::PublicKey;
6
6
use ldk_node:: bitcoin:: Amount ;
7
7
use ldk_node:: lightning:: ln:: msgs:: SocketAddress ;
8
8
use ldk_node:: { Builder , Event } ;
9
+ use ldk_node:: payment:: SendingParameters ;
9
10
10
11
use clightningrpc:: lightningrpc:: LightningRPC ;
11
12
use clightningrpc:: responses:: NetworkAddress ;
@@ -98,7 +99,14 @@ fn test_cln() {
98
99
cln_client. invoice ( Some ( 10_000_000 ) , & rand_label, & rand_label, None , None , None ) . unwrap ( ) ;
99
100
let parsed_invoice = Bolt11Invoice :: from_str ( & cln_invoice. bolt11 ) . unwrap ( ) ;
100
101
101
- node. bolt11_payment ( ) . send ( & parsed_invoice) . unwrap ( ) ;
102
+ let payment_params = SendingParameters {
103
+ max_total_routing_fee_msat : Some ( 75_000 ) ,
104
+ max_total_cltv_expiry_delta : Some ( 1000 ) ,
105
+ max_path_count : Some ( 10 ) ,
106
+ max_channel_saturation_power_of_half : Some ( 2 ) ,
107
+ } ;
108
+
109
+ node. bolt11_payment ( ) . send ( & parsed_invoice, Some ( payment_params) ) . unwrap ( ) ;
102
110
common:: expect_event!( node, PaymentSuccessful ) ;
103
111
let cln_listed_invoices =
104
112
cln_client. listinvoices ( Some ( & rand_label) , None , None , None ) . unwrap ( ) . invoices ;
0 commit comments